Spaces:
Sleeping
Sleeping
File size: 394 Bytes
b65f9e0 | 1 2 3 4 5 6 7 8 9 10 | from zai2api.server import build_responses_output
def test_responses_output_keeps_reasoning_separate() -> None:
output = build_responses_output("final answer", "reasoning text")
assert output[0]["type"] == "reasoning"
assert output[0]["summary"][0]["text"] == "reasoning text"
assert output[1]["type"] == "message"
assert output[1]["content"][0]["text"] == "final answer"
|