mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-17 09:34:48 +00:00
test: together_ai unsigned reasoning is no longer a standalone item
This commit is contained in:
parent
ab612790a0
commit
9805014bdc
1 changed files with 4 additions and 1 deletions
|
|
@ -955,8 +955,11 @@ def test_responses_api_sends_tools_and_maps_reasoning_and_function_call():
|
|||
request_body = json.loads(captured_requests[0].content)
|
||||
assert str(captured_requests[0].url) == TOGETHER_CHAT_URL
|
||||
assert [tool["function"]["name"] for tool in request_body["tools"]] == ["get_weather"]
|
||||
# Unsigned plain-text reasoning is intentionally not emitted as a standalone
|
||||
# reasoning output item (signed-only policy); only the function_call item is
|
||||
# present.
|
||||
outputs = {item.type: item for item in response.output}
|
||||
assert outputs["reasoning"].content[0].text == "Need the weather tool."
|
||||
assert "reasoning" not in outputs
|
||||
assert outputs["function_call"].name == "get_weather"
|
||||
assert json.loads(outputs["function_call"].arguments) == {"city": "San Francisco"}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue