From 94162a3dcc08051189700b330954182f3275ed8a Mon Sep 17 00:00:00 2001 From: hobokenchicken Date: Thu, 5 Mar 2026 19:21:26 +0000 Subject: [PATCH] fix: revert shared helper changes that broke standard OpenAI models - Move DeepSeek R1 reasoning_content and content:"" fixes to DeepSeekProvider only. - Restore OpenAI-standard null content for tool calls in helpers.rs. - Fixes 400 Bad Request for gpt-5-nano and other strict OpenAI models. --- src/providers/helpers.rs | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/src/providers/helpers.rs b/src/providers/helpers.rs index 86759389..f4464a6d 100644 --- a/src/providers/helpers.rs +++ b/src/providers/helpers.rs @@ -60,15 +60,10 @@ pub async fn messages_to_openai_json(messages: &[UnifiedMessage]) -> Result