mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-04 07:47:27 +01:00
test(llm-judge): type the stream transport mock call
This commit is contained in:
1 parent
852f999214
commit
f16eed8c22
1 file changed
+1
-1
@@ -52,7 +52,7 @@ test('effort reaches the wire beside the response schema and is absent unless re
|
||||
});
|
||||
await callJudge('score the whole bundle', 'claude-fable-5-1', { max_tokens: 65_536, stream: true, effort: 'medium' });
|
||||
await callJudge('score the whole bundle', 'claude-fable-5-1', { max_tokens: 65_536, stream: true });
|
||||
const bodies = transport.mock.calls.map(call => JSON.parse(call[1].body));
|
||||
const bodies = transport.mock.calls.map((call: any[]) => JSON.parse(call[1].body));
|
||||
expect(bodies[0].output_config).toEqual({ format: { type: 'json_schema', schema: WORKFLOW_JUDGE_RESPONSE_SCHEMA }, effort: 'medium' });
|
||||
expect(bodies[1].output_config).toEqual({ effort: 'medium' });
|
||||
expect(bodies[2]).not.toHaveProperty('output_config');
|
||||
|
||||
Reference in new issue
Block a user