Skip to content

Commit 4ad3e48

Browse files
committed
fix one more test
1 parent d984087 commit 4ad3e48

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/core/test/lib/utils/openai-utils.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)