Skip to content

Commit e22ee99

Browse files
committed
docs(plugins): document thinking policy api context
1 parent cde44b2 commit e22ee99

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎docs/plugins/sdk-provider-plugins.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ API key auth, and dynamic model resolution.
661661

662662
- `normalizeConfig` checks the matched provider first, then other hook-capable provider plugins until one actually changes the config. If no provider hook rewrites a supported Google-family config entry, the bundled Google config normalizer still applies.
663663
- `resolveConfigApiKey` uses the provider hook when exposed. Amazon Bedrock keeps AWS env-marker resolution in its provider plugin; runtime auth itself still uses the AWS SDK default chain when configured with `auth: "aws-sdk"`.
664-
- `resolveThinkingProfile(ctx)` receives the selected `provider`, `modelId`, optional merged `reasoning` catalog hint, and optional merged model `compat` facts. Use `compat` only to select the provider's thinking UI/profile.
664+
- `resolveThinkingProfile(ctx)` receives the selected `provider`, `modelId`, optional selected model/provider `api`, optional merged `reasoning` catalog hint, and optional merged model `compat` facts. Use `api` when the provider exposes shared API families such as `anthropic-messages` or `openai-responses`; use `compat` only to select the provider's thinking UI/profile.
665665
- `resolveSystemPromptContribution` lets a provider inject cache-aware system-prompt guidance for a model family. Prefer it over `before_prompt_build` when the behavior belongs to one provider/model family and should preserve the stable/dynamic cache split.
666666

667667
For detailed descriptions and real-world examples, see [Internals: Provider Runtime Hooks](/plugins/architecture-internals#provider-runtime-hooks).

0 commit comments

Comments
 (0)