https://www.boundaryml.com logo
🟡 Setting reasoning effort parameter for OpenAI
# questions
c
How can I set the reasoning effort parameter for openai? I imagine it's something like this, but with syntax that actually makes sense: client Gpt5MinimalThinking { provider "openai" options { model "gpt-5" reasoning "{ 'effort': 'minimal'}" } }
v
No quotes around the effort thing
Just make it a nested object
c
Thanks for the response. I'm getting this regardless of what I put as the value of the reasoning parameter:
Copy code
baml_py.internal_monkeypatch.BamlClientHttpError: BamlClientHttpError(client_name=Gpt5MinimalThinking, message=Request failed with status code: 400 Bad Request, 
{
  "error": {
    "message": "Unknown parameter: 'reasoning'.",
    "type": "invalid_request_error",
    "param": "reasoning",
    "code": "unknown_parameter"
  }
}, status_code=400)
Oh, looks like I was using "openai" rather than "openai-responses", which has 'reasoning_effort' instead of reasoning: effort