Claude Sonnet 5 / Opus 5: Anthropic API rejects hardcoded temperature param, no way to disable in Blinko
Blinko version: blinkospace/blinko:latest (image built 2026-06-20, digest sha256:31c3bc9f4fc00c82328c098c0c1120fe7fe43152a9f3cbc04b0303c32a2e60d3)
Setup: Docker Compose, Anthropic provider (Base URL fixed per #1248), model claude-sonnet-5
Description
Any AI feature that goes through Mastra's Agent.generate() (AI Tag, AI Chat, @-search, etc.) fails against claude-sonnet-5 / presumably claude-opus-5 with:
AI_APICallError: `temperature` is deprecated for this model.
url: 'https://api.anthropic.com/v1/messages'
statusCode: 404... (actual response is the deprecation error, not 404, once the /v1 fix from #1248 is applied)Mastra's Agent.generate() appears to send a default temperature value on every call unless explicitly overridden. I checked every settings component and the Prisma schema — there is no field anywhere in Blinko's UI or DB config to omit/override the temperature parameter per-model or per-provider.
Steps to Reproduce
- Set up an Anthropic provider with Base URL
https://api.anthropic.com/v1 - Add model
claude-sonnet-5(orclaude-opus-5), capabilities: inference/tools/vision - Set it as Main Chat Model
- Trigger AI Tag on any note, or use
@-search
Observed
Request fails, Anthropic's API rejects the request because a temperature value is present.
Confirmed workaround
claude-haiku-4-5-20251001 works fine with the identical setup — only the flagship-tier Sonnet 5 / Opus 5 models reject the parameter. Suggests these specific models have a stricter/different sampling contract than earlier Claude versions, and Blinko's hardcoded default temperature needs to become optional (omit the field entirely when not explicitly configured, rather than always sending a value).
Expected
Either don't send temperature unless a user has explicitly configured one, or expose a per-model "don't send temperature" toggle.
Source: blinkospace/blinko