fixed reasoning failures

This commit is contained in:
Salman Paracha 2025-12-17 14:52:05 -08:00
parent d5a273f740
commit 8b78460762
2 changed files with 5 additions and 2 deletions

View file

@ -189,7 +189,10 @@ impl TryFrom<ChatCompletionsResponse> for ResponsesAPIResponse {
top_p: 1.0,
metadata: resp.metadata.unwrap_or_default(),
truncation: None,
reasoning: None,
reasoning: Some(crate::apis::openai_responses::Reasoning {
effort: None,
summary: None,
}),
store: None,
text: None,
audio: None,

View file

@ -595,7 +595,7 @@ def test_openai_responses_api_streaming_with_tools_upstream_anthropic():
stream = client.responses.create(
model="claude-sonnet-4-20250514",
input="Call the echo tool",
input="Call the echo tool with hello_world",
tools=tools,
stream=True,
)