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

OpenAI base URL #371

Open
syaikhipin opened this issue May 10, 2024 · 1 comment
Open

OpenAI base URL #371

syaikhipin opened this issue May 10, 2024 · 1 comment

Comments

@syaikhipin
Copy link

I'm interested in using OntoGPT with an OpenAI-compatible base URL. Currently, OntoGPT seems to be designed for use with the official OpenAI API.

Could you please consider adding support for OpenAI-compatible base URLs? This would allow users to leverage alternative providers that offer similar functionality to OpenAI.

Benefits:

Increased flexibility for users who might have access to different API keys or prefer alternative providers.
Potential for cost savings if other providers offer more competitive pricing.
Possible Implementation:

If feasible, could OntoGPT accept a configuration option for specifying the base URL? This would enable users to choose between the official OpenAI API and compatible alternatives.

@caufieldjh
Copy link
Member

Hi @syaikhipin - this would indeed be helpful.
For now, I think a combination of litellm (https://github.com/BerriAI/litellm) and llm (https://github.com/simonw/llm) should be an effective workaround. The latter is already installed as an OntoGPT dependency.
This is the basic idea:

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

No branches or pull requests

2 participants