Skip to content

Commit a66a8ea

Browse files
RulaKhaledclaude
andcommitted
test(server-utils): Assert the serialized finish_reasons value
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent af35493 commit a66a8ea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/server-utils/test/ai/lib/tracing/flue.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ describe('createFlueInstrumentation', () => {
313313
expect(json?.data['gen_ai.request.model']).toBe('claude-haiku-4.5');
314314
expect(json?.data['gen_ai.provider.name']).toBe('anthropic');
315315
expect(json?.data['gen_ai.response.id']).toBe('resp_1');
316-
expect(json?.data['gen_ai.response.finish_reasons']).toEqual(['stop']);
316+
expect(json?.data['gen_ai.response.finish_reasons']).toBe('["stop"]');
317317
expect(json?.data['gen_ai.conversation.id']).toBe('conv_1');
318318
});
319319

0 commit comments

Comments
 (0)