fix: add vercel ai gateway thinking profile

Adds a Vercel AI Gateway provider thinking-profile resolver for trusted OpenAI and Anthropic upstream refs, preserving catalog compat fallback for unsupported/base-only refs.

Includes provider tests, docs, and changelog coverage. Supersedes #41561.

Co-authored-by: Zcg2021 <80769518+Zcg2021@users.noreply.github.com>
This commit is contained in:
Peter Steinberger
2026-04-29 12:13:20 +01:00
committed by GitHub
parent 6d7a77dcf9
commit 9d1c5a77c2
5 changed files with 161 additions and 0 deletions

View File

@@ -105,6 +105,15 @@ configuration. OpenClaw resolves the canonical form automatically.
MoonshotAI. Your single `AI_GATEWAY_API_KEY` handles authentication for all
upstream providers.
</Accordion>
<Accordion title="Thinking levels">
`/think` options follow trusted upstream model prefixes when OpenClaw knows
the upstream provider contract. `vercel-ai-gateway/anthropic/...` uses the
Claude thinking profile, including adaptive defaults for Claude 4.6 models.
`vercel-ai-gateway/openai/gpt-5.4`, `gpt-5.5`, and Codex-style refs expose
`/think xhigh` just like the direct OpenAI/OpenAI Codex providers. Other
namespaced refs keep the normal reasoning levels unless their catalog
metadata declares more.
</Accordion>
</AccordionGroup>
## Related