Skip to content

Custom OpenAI API Base URL Configuration #92

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

Merged
merged 2 commits into from
May 5, 2025

Conversation

neptune1212
Copy link
Contributor

CAI now supports configuring a custom OpenAI API base URL via the OPENAI_BASE_URL environment variable. This allows users to redirect API calls to a custom endpoint, such as a proxy or self-hosted OpenAI-compatible service. If not set, the default URL https://api.openai.com/v1 is used.

Example .env configuration:

OPENAI_BASE_URL="https://custom-openai-proxy.com/v1"

@neptune1212 neptune1212 closed this May 2, 2025
@neptune1212
Copy link
Contributor Author

Still some tests to do

@neptune1212
Copy link
Contributor Author

Okay all good, it was my API base url that was incorrect for Open Web UI

@neptune1212 neptune1212 reopened this May 2, 2025
@vmayoral
Copy link
Member

vmayoral commented May 5, 2025

Looks great to me, thanks @neptune1212 for the contribution!

@vmayoral vmayoral merged commit a35ee79 into aliasrobotics:main May 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants