Not able to configure OPENAI_API_BASE_URLS #53

Closed
opened 2026-02-15 19:15:49 -05:00 by yindo · 5 comments
Owner

Originally created by @juan-abia on GitHub (Jan 29, 2025).

My objective is to have multiple connections for a new deployment. The issue is that the way openaiBaseApiUrl logic currently works, I'm not able to get it to work.

Is this even possible with the helm chart?

Originally created by @juan-abia on GitHub (Jan 29, 2025). My objective is to have multiple connections for a new deployment. The issue is that the way `openaiBaseApiUrl` logic currently works, I'm not able to get it to work. Is this even possible with the helm chart?
yindo added the awaiting-user-feedback label 2026-02-15 19:15:49 -05:00
yindo closed this issue 2026-02-15 19:15:49 -05:00
Author
Owner

@westbrook-ai commented on GitHub (Feb 4, 2025):

This is definitely an issue that needs to be addressed, preferably using the OPENAI_API_BASE_URLS value in Open WebUI.

I think the most desirable approach would be:

  • If only an OpenAI API value is set, set it to OPENAI_API_BASE_URL
  • If Pipelines is enabled and no OpenAI API value is set, set OPENAI_API_BASE_URL to the Pipelines server endpoint
  • If OpenAI API value(s) set and Pipelines is enabled, use OPENAI_API_BASE_URLS to support all the endpoints in the chart
  • If Pipelines is disabled and multiple OpenAI API URLs are set, use OPENAI_API_BASE_URLS

@zadjadr and @niv1612, I see you both already have PRs open for changing how the OPENAI_API_BASE_URL variable is set - do you have any disagreements with the alternate approach I've suggested above to ensure support for Pipelines AND multiple OpenAI API URLs?

@westbrook-ai commented on GitHub (Feb 4, 2025): This is definitely an issue that needs to be addressed, preferably using the [OPENAI_API_BASE_URLS](https://docs.openwebui.com/getting-started/advanced-topics/env-configuration/#openai_api_base_urls) value in Open WebUI. I think the most desirable approach would be: - If only an OpenAI API value is set, set it to `OPENAI_API_BASE_URL` - If Pipelines is enabled and no OpenAI API value is set, set `OPENAI_API_BASE_URL` to the Pipelines server endpoint - If OpenAI API value(s) set and Pipelines is enabled, use `OPENAI_API_BASE_URLS` to support all the endpoints in the chart - If Pipelines is disabled and multiple OpenAI API URLs are set, use `OPENAI_API_BASE_URLS` @zadjadr and @niv1612, I see you both already have PRs open for changing how the `OPENAI_API_BASE_URL` variable is set - do you have any disagreements with the alternate approach I've suggested above to ensure support for Pipelines AND multiple OpenAI API URLs?
Author
Owner

@zadjadr commented on GitHub (Feb 7, 2025):

Good points & I agree with you.,

I'll try to adjust my PR according to your comments

@zadjadr commented on GitHub (Feb 7, 2025): Good points & I agree with you., I'll try to adjust my PR according to your comments
Author
Owner

@westbrook-ai commented on GitHub (Feb 14, 2025):

Hey @juan-abia, I just completed this work (with a great starting point from @zadjadr) in this PR: https://github.com/open-webui/helm-charts/pull/146

You should now be able to use the openaiBaseApiUrls value to set a list of multiple URLs, which will be set as the OPENAI_API_BASE_URLS environment variable on your Open WebUI deployment. The new approach also accounts for Pipelines being enabled or disabled, ensuring that the Pipelines endpoint is included in this variable if Pipelines is present.

Please test this out for your use case and let me know if it resolves your issue. Thanks for reporting this!

@westbrook-ai commented on GitHub (Feb 14, 2025): Hey @juan-abia, I just completed this work (with a great starting point from @zadjadr) in this PR: https://github.com/open-webui/helm-charts/pull/146 You should now be able to use the `openaiBaseApiUrls` value to set a list of multiple URLs, which will be set as the `OPENAI_API_BASE_URLS` environment variable on your Open WebUI deployment. The new approach also accounts for Pipelines being enabled or disabled, ensuring that the Pipelines endpoint is included in this variable if Pipelines is present. Please test this out for your use case and let me know if it resolves your issue. Thanks for reporting this!
Author
Owner

@juan-abia commented on GitHub (Feb 14, 2025):

This is awesome! Will test it soon, thanks!

@juan-abia commented on GitHub (Feb 14, 2025): This is awesome! Will test it soon, thanks!
Author
Owner

@westbrook-ai commented on GitHub (Mar 2, 2025):

I'm assuming this issue is all good to close, happy to re-open it if anyone comes across issues.

@westbrook-ai commented on GitHub (Mar 2, 2025): I'm assuming this issue is all good to close, happy to re-open it if anyone comes across issues.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: open-webui/helm-charts#53