@@ -18,14 +18,14 @@ describe('openai-utils', () => {
1818 expect ( getOperationName ( 'some.path.chat.completions.method' ) ) . toBe ( 'chat' ) ;
1919 } ) ;
2020
21- it ( 'should return responses for responses methods' , ( ) => {
22- expect ( getOperationName ( 'responses.create' ) ) . toBe ( 'responses ' ) ;
23- expect ( getOperationName ( 'some.path.responses.method' ) ) . toBe ( 'responses ' ) ;
21+ it ( 'should return chat for responses methods' , ( ) => {
22+ expect ( getOperationName ( 'responses.create' ) ) . toBe ( 'chat ' ) ;
23+ expect ( getOperationName ( 'some.path.responses.method' ) ) . toBe ( 'chat ' ) ;
2424 } ) ;
2525
26- it ( 'should return conversations for conversations methods' , ( ) => {
27- expect ( getOperationName ( 'conversations.create' ) ) . toBe ( 'conversations ' ) ;
28- expect ( getOperationName ( 'some.path.conversations.method' ) ) . toBe ( 'conversations ' ) ;
26+ it ( 'should return chat for conversations methods' , ( ) => {
27+ expect ( getOperationName ( 'conversations.create' ) ) . toBe ( 'chat ' ) ;
28+ expect ( getOperationName ( 'some.path.conversations.method' ) ) . toBe ( 'chat ' ) ;
2929 } ) ;
3030
3131 it ( 'should return the last part of path for unknown methods' , ( ) => {
@@ -41,7 +41,7 @@ describe('openai-utils', () => {
4141 describe ( 'getSpanOperation' , ( ) => {
4242 it ( 'should prefix operation with gen_ai' , ( ) => {
4343 expect ( getSpanOperation ( 'chat.completions.create' ) ) . toBe ( 'gen_ai.chat' ) ;
44- expect ( getSpanOperation ( 'responses.create' ) ) . toBe ( 'gen_ai.responses ' ) ;
44+ expect ( getSpanOperation ( 'responses.create' ) ) . toBe ( 'gen_ai.chat ' ) ;
4545 expect ( getSpanOperation ( 'some.custom.operation' ) ) . toBe ( 'gen_ai.operation' ) ;
4646 } ) ;
4747 } ) ;
0 commit comments