You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Budibase: 3.30.3
Deployment: Self-hosted Docker (multi-container)
AI Provider: OpenAI
Feature: Budibase AI → JavaScript validation / generation
Steps to reproduce
Deploy Budibase 3.30.3 via docker-compose
Configure OpenAI in Settings → AI with a valid API key
Create or edit a JavaScript validation using Budibase AI
Click “Validate” or “Generate”
OpenAI Base URL shown in Budibase UI is https://api.openai.com and is read only
Setting OPENAI_BASE_URL=https://api.openai.com/v1 in app-service and worker-service did not change behaviour
Appears Budibase constructs the OpenAI endpoint without /v1
Which returns 404 Not Found
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Environment
Budibase: 3.30.3
Deployment: Self-hosted Docker (multi-container)
AI Provider: OpenAI
Feature: Budibase AI → JavaScript validation / generation
Steps to reproduce
Deploy Budibase 3.30.3 via docker-compose
Configure OpenAI in Settings → AI with a valid API key
Create or edit a JavaScript validation using Budibase AI
Click “Validate” or “Generate”
OpenAI Base URL shown in Budibase UI is https://api.openai.com and is read only
Setting OPENAI_BASE_URL=https://api.openai.com/v1 in app-service and worker-service did not change behaviour
Appears Budibase constructs the OpenAI endpoint without /v1
Which returns 404 Not Found
Expected behaviour
Budibase should call: https://api.openai.com/v1/chat/completions
Evidence
Error from logs:
{
"level": "WARN",
"service": "@budibase/server",
"err": {
"type": "APICallError",
"name": "AI_APICallError",
"message": "Not Found",
"url": "https://api.openai.com/chat/completions",
"statusCode": 404,
"stack": "AI_APICallError: Not Found
at /app/node_modules/@ai-sdk/openai/node_modules/@ai-sdk/provider-utils/src/response-handler.ts:35:16
at async postToApi (/app/node_modules/@ai-sdk/openai/node_modules/@ai-sdk/provider-utils/src/post-to-api.ts:118:28)
at async OpenAIChatLanguageModel.doGenerate (/app/node_modules/@ai-sdk/openai/src/chat/openai-chat-language-model.ts:325:9)
at async generateText (/app/node_modules/ai/src/generate-text/generate-text.ts:349:12)
at async generateJs (/app/src/api/controllers/ai/js.ts:30:18)
",
"requestBodyValues": {
"model": "gpt-5-mini",
"messages": "[developer system prompt + user validation expression]"
}
}
}
Beta Was this translation helpful? Give feedback.
All reactions