singularity-forge/packages/pi-ai/src
Tom Boucher 1a499aecb2 fix: clamp 'minimal' thinking level to 'low' for gpt-5.x models (#688)
gpt-5.x models (via Copilot/OpenAI/Azure) don't support 'minimal' as a
reasoning effort level — they only accept 'none', 'low', 'medium',
'high', and 'xhigh'. Setting /thinking minimal with gpt-5.4 causes a
400 error.

The openai-codex-responses provider already had this clamping, but the
openai-responses and azure-openai-responses providers passed the value
through unclamped.

Add clampReasoningForModel() to both providers that maps 'minimal' to
'low' for gpt-5.x models, matching the existing behavior in
openai-codex-responses.

Fixes the bug portion of #688
2026-03-16 16:02:54 -04:00
..
providers fix: clamp 'minimal' thinking level to 'low' for gpt-5.x models (#688) 2026-03-16 16:02:54 -04:00
utils Remove deprecated legacy dead code from OAuth module 2026-03-14 05:11:55 +00:00
api-registry.ts feat: vendor Pi source into workspace monorepo 2026-03-12 21:55:17 -06:00
bedrock-provider.ts feat: vendor Pi source into workspace monorepo 2026-03-12 21:55:17 -06:00
cli.ts feat: vendor Pi source into workspace monorepo 2026-03-12 21:55:17 -06:00
env-api-keys.ts feat: add Ollama Cloud as model and web tool provider (#430) (#434) 2026-03-14 21:03:31 -06:00
index.ts Remove deprecated legacy dead code from OAuth module 2026-03-14 05:11:55 +00:00
models.generated.ts feat: update ollama cloud provider models (#578) 2026-03-15 22:22:29 -06:00
models.ts feat: vendor Pi source into workspace monorepo 2026-03-12 21:55:17 -06:00
oauth.ts feat: vendor Pi source into workspace monorepo 2026-03-12 21:55:17 -06:00
stream.ts feat: vendor Pi source into workspace monorepo 2026-03-12 21:55:17 -06:00
types.ts feat: add Ollama Cloud as model and web tool provider (#430) (#434) 2026-03-14 21:03:31 -06:00