ModelReasoning - Go SDK

ModelReasoning type definition

The Go SDK and docs are currently in beta. Report issues on GitHub.

Reasoning effort configuration. Omitted for non-reasoning models and dynamic router models.

Fields

FieldTypeRequiredDescriptionExample
DefaultEffortoptionalnullable.OptionalNullable[components.DefaultEffort]N/Amedium
DefaultEnabled*boolDefault reasoning enabled state when the client does not set reasoning.enabled.
Mandatorybool✔️When true, reasoning cannot be disabled and effort “none” is rejected.
SupportedEffortsoptionalnullable.OptionalNullable[[]*components.ReasoningEffort]Allowed reasoning effort values for this model, in descending effort order (highest first). Null means no allowlist — all gateway effort values are accepted.
SupportsMaxTokens*boolPresent and true when the model accepts reasoning.max_tokens in requests (Anthropic-style) instead of or in addition to reasoning.effort. Omitted otherwise.