-
-
Notifications
You must be signed in to change notification settings - Fork 343
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
Use other models compatible with the OpenAI library #1171
Comments
Definitely worth looking into. For the moment note that several deepseek models are also available through Ollama: https://ollama.com/library/deepseek-llm. |
Although DeepSeek V3 has released an open-source model, the model parameters are quite large, making self-deployment based on Ollama impractical. Typically, people use DeepSeek's official online API service. |
Deepseek is comparable in capability to Claude and ChatGPT, but its price is much cheaper, offering great value for money. |
Thank you all for the additional context! I think there is a way to bring Deepseek support into Jupyter AI, even though it lacks a LangChain partner package:
class DeepseekProvider(BaseProvider, ChatOpenAI):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.openai_api_base = "https://api.deepseek.com"
@srdas I've outlined some steps to try above. I'll assign this issue to you, so feel free to work on this issue if you have spare time. |
I was working on adding the class The approach uses I tested to see that this works: We can surely add a new |
Another approach would be to enhance |
@srdas is it possible to add a general API Provider |
Such as DeepSeek ( https://api-docs.deepseek.com/ ), :
By supporting the configuration of parameters such as api_key, base_url, and model, various large model services compatible with the OpenAI library call methods can be used.
The text was updated successfully, but these errors were encountered: