Skip to main content
Thinking/Reasoning models are a new class of LLMs designed to make their internal reasoning visible. Unlike standard LLMs that provide only final answers, thinking models such as Claude 3.7 Sonnet, OpenAI o1/o3, and Deepseek R1 “think out loud” by generating a detailed chain of thought before presenting their conclusions. These models are optimized for tasks that demand complex analysis, multi-step reasoning, and structured logic. Gegentica offers access to these advanced models through a unified API that works seamlessly across different providers.

Supported Thinking Models

Gegentica currently supports these thinking-enabled models:
  • Anthropic: claude-3-7-sonnet-latest
  • Google Vertex AI: anthropic.claude-3-7-sonnet@20250219
  • Amazon Bedrock: claude-3-7-sonnet
Additional thinking models will be supported as they become available.

Using Thinking Mode

  1. Set strict_open_ai_compliance=False in your headers or client configuration.
  2. Thinking responses are returned in a format different from standard completions.
  3. For streaming, the thinking content appears in response_chunk.choices[0].delta.content_blocks.

Basic Example

Multi-Turn Conversations

For multi-turn conversations, include the previous thinking content in the conversation history:

Understanding the Response Structure

When working with thinking-enabled models, note that their responses use a special format:
The assistant’s thinking output is found in the response_chunk.choices[0].delta.content_blocks array, not in the response.choices[0].message.content string.
This distinction is crucial for streaming responses, where you must extract the thinking content from the content blocks.

FAQs

No, thinking mode is only available on specific reasoning-optimized models. Currently, this includes Claude 3.7 Sonnet and will expand to other models as they become available.
Yes, enabling thinking mode will increase your token usage since the model is generating additional content for its reasoning process. The budget_tokens parameter lets you control the maximum tokens allocated to thinking.
Yes, particularly for streaming responses. The thinking content is returned in the content_blocks array rather than the standard content field, so you’ll need to adapt your response parsing logic.
The thinking mode response format extends beyond the standard OpenAI completion schema. Setting strict_open_ai_compliance to false allows Gegentica to return this extended format with the thinking content.