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

fix: deepseek support in getTokenForProvider #2179

Merged
merged 3 commits into from
Jan 12, 2025

Conversation

Riroaki
Copy link
Contributor

@Riroaki Riroaki commented Jan 12, 2025

Relates to

#2067

Risks

Low

Background

DeepSeek is a leading AI model provider offering high-performance language models with OpenAI-compatible API format. And the model support was introduced (but incomplete) in the issue above.

What does this PR do?

Complete the deepseek api support.

What kind of change is this?

Bug fixes (non-breaking change which fixes an issue)

Documentation changes needed?

My changes do not require a change to the project documentation.

Testing

Where should a reviewer start?

  1. agent/src/index.ts - Add deepseek in getTokenForProvider

Detailed testing steps

  • Set DEEPSEEK_API_KEY in .env
  • Configure a character to use "deepseek" as modelProvider
  • Start the agent and verify chat completion works
  • Verify different model classes (SMALL, MEDIUM, LARGE) work correctly
截屏2025-01-12 12 47 55

New environment variables needed:

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

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Riroaki! Welcome to the ai16z community. Thanks for submitting your first pull request; your efforts are helping us accelerate towards AGI. We'll review it shortly. You are now a ai16z contributor!

@odilitime odilitime changed the title Fix deepseek support in getTokenForProvider fix: deepseek support in getTokenForProvider Jan 12, 2025
@odilitime odilitime merged commit edfba8d into elizaOS:develop Jan 12, 2025
6 checks passed
0xpi-ai pushed a commit to 0xpi-ai/NayariAI that referenced this pull request Jan 15, 2025
Co-authored-by: Odilitime <janesmith@airmail.cc>
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