All at once about an hour ago, my entire team gets the following error when trying to test a prompt in the prompt playground:
Unsupported content type: ‘text/plain’. This API method only accepts ‘application/json’ or ‘application/x-www-form-urlencoded’ requests, but you specified the header ‘Content-Type: text/plain’. Please try again with a supported content type.
This is occurring across several models and settings - we’re unable to change the model and settings to prevent it from happening. But here is one example:
The error message indicates the headers in the API request that the Playground makes are not being created correctly.
I have a browser tab that has been open since yesterday, and it is able to submit the same request to Chat Completions.
Replication: I gave a hard-refresh with the shift key, and then with ctrl key to reload as a new tab. Switched to “Responses”. Of the two “prompts” as presets I’ve copied from “presets”, then dealt with, “The model “gpt-4.5-preview” is not available” because they turned off the model desired. The “default model” is then gpt-4.1 like you show.
If it is due to web search that you need Responses:
make a function for “web search”. Describe it how and when you actually want web search utilized.
Your function can then return web search results without any language injection demanding that web search take over the output, giving only short snippets with links and citations to go to actual sites like search results. It can actually inform the AI with knowledge and not be a results page.
You can use any web search API,
or if you want a web “product” as RAG, you can use the chat completions web search model as a function, which only costs you one call instead of going into loops and always searches.
Of course, you can’t test that on the playground, but you can develop a better application.