@@ -20,11 +20,6 @@ describe('openai-utils', () => {
20
20
expect ( getOperationName ( 'some.path.responses.method' ) ) . toBe ( 'chat' ) ;
21
21
} ) ;
22
22
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
-
28
23
it ( 'should return the last part of path for unknown methods' , ( ) => {
29
24
expect ( getOperationName ( 'some.unknown.method' ) ) . toBe ( 'method' ) ;
30
25
expect ( getOperationName ( 'create' ) ) . toBe ( 'create' ) ;
@@ -39,7 +34,6 @@ describe('openai-utils', () => {
39
34
it ( 'should prefix operation with gen_ai' , ( ) => {
40
35
expect ( getSpanOperation ( 'chat.completions.create' ) ) . toBe ( 'gen_ai.chat' ) ;
41
36
expect ( getSpanOperation ( 'responses.create' ) ) . toBe ( 'gen_ai.chat' ) ;
42
- expect ( getSpanOperation ( 'embeddings.create' ) ) . toBe ( 'gen_ai.embeddings' ) ;
43
37
expect ( getSpanOperation ( 'some.custom.operation' ) ) . toBe ( 'gen_ai.operation' ) ;
44
38
} ) ;
45
39
} ) ;
@@ -51,7 +45,6 @@ describe('openai-utils', () => {
51
45
} ) ;
52
46
53
47
it ( 'should return false for non-instrumented methods' , ( ) => {
54
- expect ( shouldInstrument ( 'embeddings.create' ) ) . toBe ( false ) ;
55
48
expect ( shouldInstrument ( 'unknown.method' ) ) . toBe ( false ) ;
56
49
expect ( shouldInstrument ( '' ) ) . toBe ( false ) ;
57
50
} ) ;
0 commit comments