mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-22 11:13:26 +00:00
1694e673a6
Patrol's readiness probe against a GPT 5.6 Luna deployment on Azure AI Foundry failed with "Unsupported parameter: 'max_tokens' is not supported with this model. Use 'max_completion_tokens' instead." The provider only switched fields for o1/o3/o4 models, and only on api.openai.com, so the GPT-5 family was sent max_tokens everywhere and Azure hosts were treated as generic OpenAI-compatible endpoints. Treat the GPT-5 family as reasoning models on the official and Azure OpenAI hosts. Because an Azure deployment name need not reveal the model, also act on the API's own instruction: when a 400 names max_completion_ tokens, re-send once in that form, drop the non-default temperature those models refuse, and remember the answer for the life of the client so later requests, including Patrol's streaming probes, go straight out correctly. Refs #1837 Contract-Neutral: OpenAI provider parameter selection fix for issue 1837; no wire, API, or subsystem contract change