File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/core/test/lib/utils Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -17,9 +17,9 @@ describe('openai-utils', () => {
17
17
expect ( getOperationName ( 'some.path.chat.completions.method' ) ) . toBe ( 'chat' ) ;
18
18
} ) ;
19
19
20
- it ( 'should return chat for responses methods' , ( ) => {
21
- expect ( getOperationName ( 'responses.create' ) ) . toBe ( 'chat ' ) ;
22
- expect ( getOperationName ( 'some.path.responses.method' ) ) . toBe ( 'chat ' ) ;
20
+ it ( 'should return responses for responses methods' , ( ) => {
21
+ expect ( getOperationName ( 'responses.create' ) ) . toBe ( 'responses ' ) ;
22
+ expect ( getOperationName ( 'some.path.responses.method' ) ) . toBe ( 'responses ' ) ;
23
23
} ) ;
24
24
25
25
it ( 'should return the last part of path for unknown methods' , ( ) => {
@@ -35,7 +35,7 @@ describe('openai-utils', () => {
35
35
describe ( 'getSpanOperation' , ( ) => {
36
36
it ( 'should prefix operation with gen_ai' , ( ) => {
37
37
expect ( getSpanOperation ( 'chat.completions.create' ) ) . toBe ( 'gen_ai.chat' ) ;
38
- expect ( getSpanOperation ( 'responses.create' ) ) . toBe ( 'gen_ai.chat ' ) ;
38
+ expect ( getSpanOperation ( 'responses.create' ) ) . toBe ( 'gen_ai.responses ' ) ;
39
39
expect ( getSpanOperation ( 'some.custom.operation' ) ) . toBe ( 'gen_ai.operation' ) ;
40
40
} ) ;
41
41
} ) ;
You can’t perform that action at this time.
0 commit comments