Enable Thinking Mode to enhance your AI’s reasoning capabilities.
strict_open_ai_compliance=False
in your headers or client configuration.response_chunk.choices[0].delta.content_blocks
.response_chunk.choices[0].delta.content_blocks
array, not in the response.choices[0].message.content
string.Can I use thinking mode with any model?
Does thinking mode increase token usage?
budget_tokens
parameter lets you control the maximum tokens allocated to thinking.Do I need to handle the response differently for thinking mode?
content_blocks
array rather than the standard content field,
so you’ll need to adapt your response parsing logic.Why do I need to set strict_open_ai_compliance to false?
strict_open_ai_compliance
to false allows Obiguard to return this extended format with the thinking content.