https://www.boundaryml.com logo
🟡 Regression of OpenAI API in version 0.207.0 wit...
# questions
c
seems there is regression on openai response api. I am on 0.207.0. the error is
Copy code
Unspecified error code: 400 Request failed with status code: 400 Bad Request, 
{
  "error": {
    "message": "Invalid value: 'input_text'. Supported values are: 'output_text' and 'refusal'.",
    "type": "invalid_request_error",
    "param": "input[1].content[0]",
    "code": "invalid_value"
  }
}

Request options: {"model":"gpt-4.1","temperature":0,"tools":[{"type":"web_search_preview"}]}
wondeirng if there is a quick fix
@Vaibhav (BAML 🐑) @baml-sam ^^
b
Thanks for reporting! What version was this working on before?
Upgrading to 0.207.1 might just fix this too. We did have a bug here - openai-responses pre 0.207.1 didn’t work with role=assistant messages - but it never worked before that, so I’m not sure what regressed for you here.
c
ah nice. trying now
weird it worked before for me .😀
it works now. thanks a lot
b
glad it was an easy fix!