@@ -20,11 +20,6 @@ describe('openai-utils', () => {
2020 expect ( getOperationName ( 'some.path.responses.method' ) ) . toBe ( 'chat' ) ;
2121 } ) ;
2222
23- it ( 'should return embeddings for embeddings methods' , ( ) => {
24- expect ( getOperationName ( 'embeddings.create' ) ) . toBe ( 'embeddings' ) ;
25- expect ( getOperationName ( 'some.path.embeddings.method' ) ) . toBe ( 'embeddings' ) ;
26- } ) ;
27-
2823 it ( 'should return the last part of path for unknown methods' , ( ) => {
2924 expect ( getOperationName ( 'some.unknown.method' ) ) . toBe ( 'method' ) ;
3025 expect ( getOperationName ( 'create' ) ) . toBe ( 'create' ) ;
@@ -39,7 +34,6 @@ describe('openai-utils', () => {
3934 it ( 'should prefix operation with gen_ai' , ( ) => {
4035 expect ( getSpanOperation ( 'chat.completions.create' ) ) . toBe ( 'gen_ai.chat' ) ;
4136 expect ( getSpanOperation ( 'responses.create' ) ) . toBe ( 'gen_ai.chat' ) ;
42- expect ( getSpanOperation ( 'embeddings.create' ) ) . toBe ( 'gen_ai.embeddings' ) ;
4337 expect ( getSpanOperation ( 'some.custom.operation' ) ) . toBe ( 'gen_ai.operation' ) ;
4438 } ) ;
4539 } ) ;
@@ -51,7 +45,6 @@ describe('openai-utils', () => {
5145 } ) ;
5246
5347 it ( 'should return false for non-instrumented methods' , ( ) => {
54- expect ( shouldInstrument ( 'embeddings.create' ) ) . toBe ( false ) ;
5548 expect ( shouldInstrument ( 'unknown.method' ) ) . toBe ( false ) ;
5649 expect ( shouldInstrument ( '' ) ) . toBe ( false ) ;
5750 } ) ;
0 commit comments