There is a new parameter called reasoning_effort=
which you can set to high medium or low to set that.
from openai import OpenAI
client = OpenAI()
response = client.chat.completions.create(
model="o3-mini-2025-01-31",
messages=[
{
"role": "developer",
"content": [
{
"type": "text",
"text": "You are a helpful assistant"
}
]
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "why does the moon sometimes appear in the day?"
}
]
}
],
response_format={
"type": "text"
},
reasoning_effort="low"
)