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', () => {
1717 expect ( getOperationName ( 'some.path.chat.completions.method' ) ) . toBe ( 'chat' ) ;
1818 } ) ;
1919
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 ' ) ;
2323 } ) ;
2424
2525 it ( 'should return the last part of path for unknown methods' , ( ) => {
@@ -35,7 +35,7 @@ describe('openai-utils', () => {
3535 describe ( 'getSpanOperation' , ( ) => {
3636 it ( 'should prefix operation with gen_ai' , ( ) => {
3737 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 ' ) ;
3939 expect ( getSpanOperation ( 'some.custom.operation' ) ) . toBe ( 'gen_ai.operation' ) ;
4040 } ) ;
4141 } ) ;
You can’t perform that action at this time.
0 commit comments