Error 400 when using OpenAI API in Automations #13592
Unanswered
fueledbyEmin
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using the tutorial at https://docs.budibase.com/docs/openai to send a question to OpenAI API.
But I get Error 400
{ "success": false, "response": "Error: Request failed with status code 400" }
From OpenAI forums, the problem can be in the JSON payload which should include
max_tokens
andtemperature
params. What's more,max_tokens
andtemperature
should be set to specific values. For example,max_tokens=64
andtemperature=0.5
.If Budibase correctly structures OpenAI API requests in the background, what could be the problem here?
I'm self-hosting using docker-compose.
Beta Was this translation helpful? Give feedback.
All reactions