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

[FR]: Extend compatibility to OpenAI compatible services #237

Open
1 task done
mustafamohsen opened this issue Jan 20, 2025 · 2 comments
Open
1 task done

[FR]: Extend compatibility to OpenAI compatible services #237

mustafamohsen opened this issue Jan 20, 2025 · 2 comments
Labels
feature a feature request or enhancement

Comments

@mustafamohsen
Copy link

What would you like to have?

There are plenty of LLM providers that are compatible with OpenAI APIs (e.g. Deepseek). It would add more versatility to have a generic OpenAI Compatible provider that accepts base URL, API key, and model as inputs, and calls accordingly. This approach is implemented by VS Code's extension Cline, as well as others

Code of Conduct

  • I agree to follow this project's Code of Conduct
@mustafamohsen mustafamohsen added the feature a feature request or enhancement label Jan 20, 2025
@calderonsamuel
Copy link
Collaborator

Thanks for the idea, we are thinking on changing our internal logic to rely on the new {ellmer} . That should allow us to support (hopefullly) everything that package can handle. I see that we can extend the chat_openai() method with a custom URL and API KEY very easily. The model might be a bit more trickier. We'll be sharing any updates on this thread.

Btw, if you have Ollama + Deepseek running locally, it should be already supported

@mustafamohsen
Copy link
Author

@calderonsamuel
That's interesting. Thanks for the hints.
Yes, I have Ollama, but Deepseek is kinda slow to run locally, even on an M2 Ultra, so I primarily rely on the APIs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature a feature request or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants