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

feat: impl deepseek #625

Merged
merged 2 commits into from
Dec 27, 2024
Merged

feat: impl deepseek #625

merged 2 commits into from
Dec 27, 2024

Conversation

RaoHai
Copy link
Contributor

@RaoHai RaoHai commented Dec 27, 2024

  • 支持下国产大模型

Copy link

vercel bot commented Dec 27, 2024

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 Dec 27, 2024 4:10pm

Copy link

Walkthrough

此PR实现了对国产大模型的支持,主要通过引入DeepSeekClient类来实现。更新包括在多个语言文件中更改了"Create Token"的翻译,添加了获取LLM列表的功能,并在服务端引入了DeepSeek的客户端。

Changes

文件 概要
client/.kiwi/en/components.ts, client/.kiwi/ja/components.ts, client/.kiwi/ko/components.ts, client/.kiwi/zh-CN/components.ts, client/.kiwi/zh-TW/components.ts 更新了"Create Token"的翻译。
client/app/hooks/useToken.ts 添加了useListLLMs函数以获取LLM列表。
client/app/services/TokensController.ts 添加了getLLMList函数以从API获取LLM列表。
client/app/user/tokens/components/CreateModal.tsx 使用新的useListLLMs函数动态生成选择项。
server/agent/llm/clients/deepseek.py 新增DeepSeekClient类以支持DeepSeek模型。
server/core/service/user_token_usage.py 代码格式调整。

Copy link

codecov bot commented Dec 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Files with missing lines Coverage Δ
server/core/service/user_token_usage.py 48.88% <ø> (ø)

@RaoHai RaoHai merged commit 63c97d7 into main Dec 27, 2024
5 checks passed
@RaoHai RaoHai deleted the feat/impl-deepseek branch December 27, 2024 16:14
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