https://www.boundaryml.com logo
Openai-responses client returning bad request
# help
i
I am trying to use this client
Copy code
// OpenAI 5 Nano Client
client<llm> OpenAI5Nano {
  provider openai-responses
  options {
    model "gpt-5-nano"
    api_key env.OPENAI_API_KEY
    temperature 0.2
    reasoning {
      effort "low"
    }
  }
}
But everytime it returns this error
Copy code
---REQUEST OPTIONS---
    model: "gpt-5-nano"
    temperature: 0.2
    ---ERROR (Unspecified error code: 400)---
    Request failed with status code: 400 Bad Request. {"error":{"message":"Missing required parameter: 'input[1].content[1]'.","type":"invalid_request_error","param":"input[1].content[1]","code":"missing_required_parameter"}}
function is also set correctly
Copy code
function AnalyzeResumeWithLinks(resume: image | pdf, links_json: string) -> ResumeAnalysis {
  client OpenAI5Nano
  prompt #"
    {{ _.role("system") }}
a
Ok ill patch this tomorrow
i
Thanks
a
good news we found the issue. looks like openai made the
filename
property required recently
fix will go out in a few hours
sorry it got a bit delayed, will go out tomorrow (in around 10 hours-ish)
i
No worries @User
a
can you try 0.209.0 when you get a chance?
i
@aaronv (BAML) Thanks for the update. I am busy on something else right now, will definetly check when I get time and update you if the issue persists. But I am sure there won't be. You the best! 🙌🏼
a
haha it's sometimes a game of whack-a-mole -- and these APIs are a bit tricky, so yep i'll keep the patches coming until everything is good
i
hah! yes. Would love to see the day OpenAI manages their API to BAML standards.