Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error 400 when using OpenAI API in Automations #13678

Open
mikesealey opened this issue May 14, 2024 Discussed in #13592 · 1 comment
Open

Error 400 when using OpenAI API in Automations #13678

mikesealey opened this issue May 14, 2024 Discussed in #13592 · 1 comment
Labels
bb-automations Budibase Automations related work bug Something isn't working env - production Bug found in production low-hanging-fruit

Comments

@mikesealey
Copy link
Collaborator

Discussed in #13592

Originally posted by fueledbyEmin May 2, 2024
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 and temperature params. What's more, max_tokens and temperature should be set to specific values. For example, max_tokens=64 and temperature=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.


CSE Team findings

GPT-3.5 Turbo returns a 400 response
GPT-4 returns a 404 response

Possibly the internal model name has been depricated in the API and may need to be updated.

Copy link

linear bot commented May 14, 2024

@mike12345567 mike12345567 added bug Something isn't working bb-automations Budibase Automations related work labels May 14, 2024
@andz-bb andz-bb added env - production Bug found in production low-hanging-fruit labels May 14, 2024 — with Linear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bb-automations Budibase Automations related work bug Something isn't working env - production Bug found in production low-hanging-fruit
Projects
None yet
Development

No branches or pull requests

3 participants