Добрый день.  Нужно добавить reasoning effort="high".<br>Пробовал по примеру - выдает ошибку. Перед отзывом прошу попробовать у себя.<br><br>Пример:<br><pre><code><span>from</span> openai <span>import</span> OpenAI
client = OpenAI()
 prompt = <span>"""
</span><span>Write a bash script that takes a matrix represented as a string with 
</span><span>format '[1,2],[3,4],[5,6]' and prints the transpose in the same format.
</span><span>"""</span>  response = client.chat.completions.create(
    model=<span>"o3-mini"</span>,
    reasoning_effort=<span>"medium"</span>,
    messages=[
        {
<span>"role"</span>: <span>"user"</span>, 
<span>"content"</span>: prompt
        }
    ]
)
 <span>print</span>(response.choices[<span>0</span>].message.content)</code></pre><a href="https://platform.openai.com/docs/guides/reasoning#use-case-examples">https://platform.openai.com/docs/guides/reasoning#...</a>