Skip to content

Commit 030c82e

Browse files
authored
Merge pull request #105 from chatchat-space/feat/supportdeepseek
Feat/supportdeepseek
2 parents 4410d52 + dbe04c7 commit 030c82e

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

chatchat-server/chatchat/settings.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ class PlatformConfig(MyBaseModel):
293293
platform_name: str = "xinference"
294294
"""平台名称"""
295295

296-
platform_type: t.Literal["xinference", "ollama", "oneapi", "fastchat", "openai", "bigmodel", "hunyuan", "custom openai"] = "xinference"
296+
platform_type: t.Literal["xinference", "ollama", "oneapi", "fastchat", "openai", "bigmodel", "deepseek", "hunyuan", "custom openai"] = "xinference"
297297
"""平台类型"""
298298

299299
api_base_url: str = "http://127.0.0.1:9997/v1"
@@ -508,6 +508,19 @@ class ApiModelSettings(BaseFileSettings):
508508
"embedding-2",
509509
],
510510
}),
511+
PlatformConfig(**{
512+
"platform_name": "deepseek",
513+
"platform_type": "deepseek",
514+
"api_base_url": "https://api.deepseek.com",
515+
"api_key": "sk-",
516+
"api_concurrencies": 5,
517+
"llm_models": [
518+
"deepseek-reasoner",
519+
],
520+
"embed_models": [
521+
"",
522+
],
523+
}),
511524
PlatformConfig(**{
512525
"platform_name": "hunyuan",
513526
"platform_type": "hunyuan",

docs/img/wx_01.jpg

-12.3 KB
Loading

0 commit comments

Comments
 (0)