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

feat: add support for custom OpenAI base URLs (AEGHB-450) #310

Closed
wants to merge 2 commits into from
Closed

feat: add support for custom OpenAI base URLs (AEGHB-450) #310

wants to merge 2 commits into from

Conversation

sammcj
Copy link

@sammcj sammcj commented Nov 11, 2023

This PR is intended to add support for providing a custom OpenAI compatible API endpoint.

Many LLM servers people run locally or within their network can expose an OpenAI compatible API, as such you usually update the "base url" to point to your server.

Examples of such projects include the popular:

There’s also integration libraries like LiteLLM which basically means any project that uses it automatically gets an openAI compatible API: BerriAI/litellm

Please do verify my logic as I am not experienced with C and as such relied on a LLM to assist me in making this change.

I believe this change is required to support espressif/esp-box#110

Thank you for your consideration.

@CLAassistant
Copy link

CLAassistant commented Nov 11, 2023

CLA assistant check
All committers have signed the CLA.

@github-actions github-actions bot changed the title feat: add support for custom OpenAI base URLs feat: add support for custom OpenAI base URLs (AEGHB-450) Nov 11, 2023
@leeebo
Copy link
Collaborator

leeebo commented Nov 13, 2023

@sammcj Thanks for your contribution. custom OpenAI base URL is a useful feature to support other LLMs, I will cherry-pick your commit and merge it

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.

3 participants