Skip to content

Add Deepseek API support #369

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

Open
drpetersonfernandes opened this issue Mar 24, 2025 · 3 comments
Open

Add Deepseek API support #369

drpetersonfernandes opened this issue Mar 24, 2025 · 3 comments
Labels
enhancement New feature or request

Comments

@drpetersonfernandes
Copy link

Add Deepseek API support
API cost is cheaper

@bhouston bhouston added the enhancement New feature or request label Mar 24, 2025
@bhouston
Copy link
Member

Deepseek API Support Triage

Thank you for suggesting Deepseek API support! This feature aligns well with MyCoder's goal of providing flexible AI provider options.

Implementation Approach

Based on the existing provider implementation pattern in MyCoder, adding Deepseek support would involve:

  1. Adding Deepseek to the provider registry in provider.ts
  2. Creating a new deepseek.ts provider implementation file
  3. Implementing the LLMProvider interface for Deepseek

Additional Information Needed

To proceed with implementation, it would be helpful to have more details about:

  • Deepseek API documentation link
  • Authentication method (API key structure)
  • Base URL for API endpoints
  • Available models and their context window sizes
  • Whether the API is OpenAI-compatible (which seems likely based on research)

Next Steps

I've added the enhancement label to this issue. Once we have more details about the API, we can move forward with implementation.

The lower API cost you mentioned is definitely a compelling reason to add support for this provider. If you have any specific cost comparisons or other benefits to highlight, please share them.

@bhouston
Copy link
Member

@drpetersonfernandes The DeepSeek documentation says this:

"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."

The current implementation of the OpenaI provider in mycoder supports overriding the baseUrl, which means you can point it at DeepSeek's API:

https://docs.mycoder.ai/docs/providers/openai#using-openai-compatible-providers

Just set in mycoder.config.js:

{
   ...
   provider: 'openai',
   model: 'deepseek-chat'
   baseUrl: "https://api.deepseek.com",
  ....,
}

And set OPENAI_API_KEY to be your deep seek key.

Basically I think it would work now without any modifications.

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

No branches or pull requests

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy