gpt-5 from OpenAI or claude-4.5-sonnet from Anthropic) via the reasoning_effort field in the /v1/chat/completions API. For models that do not natively support extended reasoning, such as shuttle-3.5 or older models from other providers, you can instruct the AI through prompts to perform reasoning within <think></think> tags. ShuttleAI automatically parses these tags into a separate reasoning_content field in the response, distinct from the main content.
The
reasoning_effort field enhances model performance by applying deliberate, extended thinking natively. Prompt-based <think></think> tags work with any model but rely on prompting and parsing, which may not be as effective as native support. The default value for reasoning_effort is none. Even if reasoning_effort is set to none, prompt-based reasoning with <think></think> will still function if included in your instructions.What is Reasoning Effort?
Thereasoning_effort field allows you to control the level of deliberate reasoning a model applies when generating responses. This is particularly useful for complex queries requiring step-by-step thinking. Supported values are:
none: No additional reasoning effort (default).minimal: Light reasoning for simple tasks.low: Basic extended thinking.medium: Moderate reasoning for balanced performance.high: Intensive reasoning for challenging problems.
claude-3.7-sonnet, claude-4.5-sonnet, gpt-5, and similar newer models. For these models, no special prompting is required— the reasoning is handled internally and returned in the reasoning_content field.
Refer to the OpenAPI schema for the /v1/chat/completions endpoint:
Using Tags for Models Without Native Support
For models like shuttle-3.5 or older OpenAI/Anthropic models that lack built-in extended reasoning, you can achieve similar results by including instructions in your system or user prompt. Direct the model to enclose its reasoning in <think></think> tags before providing the final answer. ShuttleAI will automatically extract this into reasoning_content, keeping the main content clean.
This approach does not require the reasoning_effort field and works even if it’s set to none. However, the quality may vary compared to native reasoning in advanced models.
Supported Models
- Native Reasoning Effort Support: Models like
gpt-5(OpenAI),claude-3.7-sonnet,claude-4.5-sonnet(Anthropic), and equivalents from other providers. - Prompt-Based
Support: All models, including shuttle-3.5and older versions from OpenAI, Anthropic, etc.
Example: Prompt-Based Reasoning with Tags
This example uses shuttle-3.5 without reasoning_effort. The system prompt instructs the model to reason within tags.
Example: Native Reasoning with reasoning_effort
This example usesclaude-3.7-sonnet with reasoning_effort set to low.