Skip to content

feat: Add DeepSeek AI provider support to Eliza#2067

Merged
wtfsayo merged 9 commits into
elizaOS:developfrom
daizhengxue:main
Jan 11, 2025
Merged

feat: Add DeepSeek AI provider support to Eliza#2067
wtfsayo merged 9 commits into
elizaOS:developfrom
daizhengxue:main

Conversation

@daizhengxue

@daizhengxue daizhengxue commented Jan 9, 2025

Copy link
Copy Markdown
Contributor

Relates to

Add DeepSeek AI provider support to Eliza

Risks

Low - Adding a new model provider with OpenAI-compatible API format

Background

DeepSeek is a leading AI model provider offering high-performance language models with OpenAI-compatible API format. Their models are known for:

  • Strong performance in coding and general tasks
  • Cost-effective pricing
  • OpenAI-compatible API format for easy integration

What does this PR do?

  • Adds DeepSeek AI as a new model provider:https://api-docs.deepseek.com/
  • Implements DeepSeek chat completion API integration
  • Adds configuration support for DeepSeek API key and models
  • Adds environment variables for DeepSeek configuration

What kind of change is this?

Features (non-breaking change which adds functionality)

Documentation changes needed?

My changes require a change to the project documentation.

  • Add DeepSeek configuration to environment variables documentation
  • Add DeepSeek provider setup instructions

Testing

Where should a reviewer start?

  1. packages/core/src/types.ts - Added DeepSeek to ModelProviderName
  2. packages/core/src/models.ts - Added DeepSeek model configuration
  3. packages/core/src/generation.ts - Added DeepSeek provider implementation

Detailed testing steps

  1. Set DEEPSEEK_API_KEY in .env
  2. Configure a character to use "deepseek" as modelProvider
  3. Start the agent and verify chat completion works
  4. Verify different model classes (SMALL, MEDIUM, LARGE) work correctly
Screenshot 2025-01-09 at 23 35 06

Deploy Notes

New environment variables needed:

  • DEEPSEEK_API_KEY
  • DEEPSEEK_API_URL (optional)
  • SMALL_DEEPSEEK_MODEL (optional)
  • MEDIUM_DEEPSEEK_MODEL (optional)
  • LARGE_DEEPSEEK_MODEL (optional)

@daizhengxue daizhengxue changed the base branch from main to develop January 9, 2025 16:16
@daizhengxue daizhengxue changed the title Add DeepSeek AI provider support to Eliza feat: Add DeepSeek AI provider support to Eliza Jan 10, 2025
wtfsayo
wtfsayo previously approved these changes Jan 10, 2025
@wtfsayo wtfsayo self-requested a review January 11, 2025 11:28
wtfsayo
wtfsayo previously approved these changes Jan 11, 2025
@wtfsayo wtfsayo self-requested a review January 11, 2025 11:29
@wtfsayo wtfsayo merged commit 565f4e7 into elizaOS:develop Jan 11, 2025
@daizhengxue

Copy link
Copy Markdown
Contributor Author

thx

@daizhengxue

Copy link
Copy Markdown
Contributor Author

Sorry guys. I missed the API key input.
I fix it in this repo.
#2186

0xpi-ai pushed a commit to 0xpi-ai/NayariAI that referenced this pull request Jan 15, 2025
feat: Add DeepSeek AI provider support to Eliza
lalalune pushed a commit that referenced this pull request May 3, 2026
feat: Add DeepSeek AI provider support to Eliza
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

Successfully merging this pull request may close these issues.

2 participants