http request problem new openAI responses API
I’m trying to get new model response which has the the web search tool
I’ve set up the header auth with:
Name
Authorization
Value
Bearer my-API
but it keep on giving me error of authentication:
Error code 401
Full message
{
"error": {
"message": "Missing bearer or basic authentication in header",
"type": "invalid_request_error",
"param": null,
"code": null
}
}
these are my body parameters:
{
"model": "gpt-4o",
"tools": [
{
"type": "web_search_preview",
"user_location": {
"type": "approximate",
"country": "IT"
}
}
],
"input": "chi è {{ $json.chatInput }}?"
}
and this are my headers:
[
{
"name": "Content-Type",
"value": "application/json"
}
]
Do you have some suggestion on how to fix it?
Ps: I can retrieve the response using python and openAI library so the problem is on n8n part
2
7 comments
Andrea Mugnano
2
http request problem new openAI responses API
AI Automation Society
skool.com/ai-automation-society
A community built to master no-code AI automations. Join to learn, discuss, and build the systems that will shape the future of work.
Leaderboard (30-day)
Powered by