When I try using any of the GPT 4.1 over API with websearch API, I get an error code 400:
Code snippet:
** const completion = await client.chat.completions.create({**
** model: “gpt-4.1”,**
** web_search_options: {**
** search_context_size: “low”,**
** },**
** messages: [{**
** “role”: “user”,**
** “content”: query,**
** }],**
** });**
Logs:
Sending request to OpenAI…
Error: 400 Web search options not supported with this model.
But clearly from OpenAI docs it shows 4.1 as a model that has web search, is the web search variant just not released yet?
