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

More other models supported #260

Open
Kejiasir opened this issue Feb 5, 2025 · 5 comments
Open

More other models supported #260

Kejiasir opened this issue Feb 5, 2025 · 5 comments

Comments

@Kejiasir
Copy link

Kejiasir commented Feb 5, 2025

Have you considered supporting the deepseek model?

@nezhyborets
Copy link
Collaborator

nezhyborets commented Feb 5, 2025

Hi @Kejiasir , thanks for the question/request! I wanted to take a look at their API reference before answering, so that I'd see what would be required to add such support and if we'd do that. But API Ref site is down, so I will have to wait

@Kejiasir
Copy link
Author

Kejiasir commented Feb 5, 2025

Hey @nezhyborets , Thank you for your reply. Yes, I also noticed that deepseek's open platform is currently inaccessible. I will continue to pay attention and look forward to your follow-up processing.

@Kejiasir
Copy link
Author

Kejiasir commented Feb 6, 2025

Hey @nezhyborets ,You can access the DeepSeek API Docs documentation.

@nezhyborets
Copy link
Collaborator

nezhyborets commented Feb 7, 2025

@Kejiasir I've just tried to init OpenAI with configuration initialised with DeepSeek API key as token, api.deepseek.com as host, and then use deepseek-chat as Model for requests/queries. The demo app replied that I don't have sufficient balance, and I can't top up because

Due to current server resource constraints, we have temporarily suspended API service recharges to prevent any potential impact on your operations. Existing balances can still be used for calls. We appreciate your understanding!

If you have a balance, could you try the above and see if it works for you?

@Kejiasir
Copy link
Author

Kejiasir commented Feb 8, 2025

Sorry, like you, I don’t have an API balance available for testing. However, I read the DeepSeek API Docs, which states:

The DeepSeek API uses an API format compatible with OpenAI. By modifying the configuration, you can use the OpenAI SDK or softwares compatible with the OpenAI API to access the DeepSeek API.

To implement this, I extended the Model type as follows:

extension Model {
    static let deepseek_v3 = "deepseek-chat"
    static let deepseek_r1 = "deepseek-reasoner"
}

I will test this later.

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