Skip to content

fix(ai): 🐛 Make the chat temperature optional for providers that reject it - #162

Merged
vitofico merged 1 commit into
mainfrom
fix/ai-optional-temperature
Oct 30, 2026
Merged

vitofico merged 1 commit into
mainfrom
fix/ai-optional-temperature

Conversation

@vitofico

Copy link
Copy Markdown
Owner

Claude Haiku 5.5 rejects every temperature value ("temperature is deprecated for this model"), so Quire could not use it: each insight request would fail with a 400.

QUIRE_SERVER_AI_TEMPERATURE now sets the value. It defaults to 0.2, so existing deployments send exactly what they sent before. An empty value or none leaves the parameter out of the request.

Nothing else changes for Haiku. Anthropic's OpenAI-compatible endpoint accepts json_schema mode but ignores it, and the client already detects that and moves the schema into the prompt (#102).

Unit tests cover the setting parsing, the client body and the wiring.

@vitofico
vitofico merged commit 67c3ba8 into main Oct 30, 2026
8 checks passed
@vitofico
vitofico deleted the fix/ai-optional-temperature branch October 30, 2026 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant