Skip to content

Commit

Permalink
[Feature][Transform-V2] llm add deepseek (#8544)
Browse files Browse the repository at this point in the history
  • Loading branch information
corgy-w authored Jan 17, 2025
1 parent cc22fb1 commit 6a39c9a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/en/transform-v2/llm.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ more.
### model_provider

The model provider to use. The available options are:
OPENAI, DOUBAO, KIMIAI, MICROSOFT, CUSTOM
OPENAI, DOUBAO, DEEPSEEK, KIMIAI, MICROSOFT, CUSTOM

> tips: If you use Microsoft, please make sure api_path cannot be empty
Expand Down
2 changes: 1 addition & 1 deletion docs/zh/transform-v2/llm.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
### model_provider

要使用的模型提供者。可用选项为:
OPENAIDOUBAOKIMIAIMICROSOFT, CUSTOM
OPENAI,DOUBAO,DEEPSEEK,KIMIAI,MICROSOFT, CUSTOM

> tips: 如果使用 Microsoft, 请确保 api_path 配置不能为空
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public enum ModelProvider {
"https://ark.cn-beijing.volces.com/api/v3/embeddings"),
QIANFAN("", "https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/embeddings"),
KIMIAI("https://api.moonshot.cn/v1/chat/completions", ""),
DEEPSEEK("https://api.deepseek.com/chat/completions", ""),
MICROSOFT("", ""),
CUSTOM("", ""),
LOCAL("", "");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ public void open() {
config.get(LLMTransformConfig.API_KEY),
provider.usedLLMPath(config.get(LLMTransformConfig.API_PATH)));
break;
case DEEPSEEK:
case OPENAI:
case DOUBAO:
model =
Expand Down

0 comments on commit 6a39c9a

Please sign in to comment.