mirror of
https://github.com/open-jarvis/OpenJarvis.git
synced 2026-07-29 18:40:38 +00:00
Some OpenAI models (e.g. gpt-5, the default for a fresh cloud install) reject a non-default temperature with HTTP 400 "Unsupported value: 'temperature' does not support 0.7 ... Only the default (1) value is supported." — so the user's very first prompt fails (#426). Detect that specific 400 (param=temperature + unsupported_value/"only the default"/"does not support") and retry the create() once without temperature, mirroring the tools-400 retry in the Ollama and OpenAI-compat engines. Unrelated 400s are re-raised unchanged. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>