Skip to content

chore: add deepseek r1 #727

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

Merged
merged 2 commits into from
Feb 6, 2025
Merged

chore: add deepseek r1 #727

merged 2 commits into from
Feb 6, 2025

Conversation

RaoHai
Copy link
Contributor

@RaoHai RaoHai commented Feb 6, 2025

No description provided.

Copy link

vercel bot commented Feb 6, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
petercat ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 6, 2025 8:06am

Copy link

Walkthrough

This pull request introduces a new client for the DeepSeek R1 model, integrating it with the existing system. It involves creating a new file for the DeepSeek R1 client and modifying the existing DeepSeek V3 client registration.

Changes

File Summary
server/agent/llm/clients/deepseekr1_dashscope.py Added a new client class DeepSeekV3DashScopeClient for the DeepSeek R1 model, including initialization and utility methods.
server/agent/llm/clients/deepseekv3_dashscope.py Updated the client registration and class name to DeepSeekV3DashScopeClient for the DeepSeek V3 model.

max_tokens=max_tokens,
openai_api_key=api_key,
stream_usage=True,
openai_api_base="https://dashscope.aliyuncs.com/compatible-mode/v1"

Choose a reason for hiding this comment

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

Ensure that the openai_api_base URL is correct and accessible. Any issues with this endpoint could lead to failures in API requests.

Copy link

codecov bot commented Feb 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

@RaoHai RaoHai merged commit 61fc5c3 into main Feb 6, 2025
5 checks passed
@RaoHai RaoHai deleted the chore/rename-deepseek branch February 6, 2025 08:09
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.

1 participant