fix(openai): Tool-Calling-Reliability verbessern (maxIterations, forced tool_choice, Thinking-Strip)

- maxIterations aus Server-Settings an OpenAI-StreamChat durchreichen (war hardcoded 10)
- Auto-Continue: tool_choice="required" erzwingt Tool-Call statt erneuter Ankündigung,
  wird nach erfolgreichem Tool-Call wieder auf "auto" zurückgesetzt
- Direktive Continuation-Message statt einfaches "Continue."
- StripOldThinking: <think>-Blöcke aus älteren Assistant-Messages entfernen (nur letzte 4 behalten),
  reduziert Kontext-Inflation die ab ~20k Tokens zu Tool-Call-Degradation führt
- reasoning_split=true entfernt (wird von MiniMax-API ignoriert)
- parallel_tool_calls=false für MiniMax (Streaming, Non-Streaming, Payload-Preview)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
MelekiandClaude Opus 4.6 committed 2026-05-14 12:16:55 +02:00
1 parent 0f2f026baa
commit 358d9328be
3 files changed
+94 -11

No files matched your search

+5 -1
View File
@@ -347,7 +347,11 @@ public static class SessionEndpoint
}
if (provider == "minimax")
payload["extra_body"] = new { reasoning_split = true };
{
payload["temperature"] = 1.0;
payload["top_p"] = 0.95;
payload["parallel_tool_calls"] = false;
}
if (provider == "nvidia")
{