Skip to content

Commit

Permalink
Merge pull request #105 from chatchat-space/feat/supportdeepseek
Browse files Browse the repository at this point in the history
Feat/supportdeepseek
  • Loading branch information
yuehua-s authored Feb 11, 2025
2 parents 4410d52 + dbe04c7 commit 030c82e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion chatchat-server/chatchat/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ class PlatformConfig(MyBaseModel):
platform_name: str = "xinference"
"""平台名称"""

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

api_base_url: str = "http://127.0.0.1:9997/v1"
Expand Down Expand Up @@ -508,6 +508,19 @@ class ApiModelSettings(BaseFileSettings):
"embedding-2",
],
}),
PlatformConfig(**{
"platform_name": "deepseek",
"platform_type": "deepseek",
"api_base_url": "https://api.deepseek.com",
"api_key": "sk-",
"api_concurrencies": 5,
"llm_models": [
"deepseek-reasoner",
],
"embed_models": [
"",
],
}),
PlatformConfig(**{
"platform_name": "hunyuan",
"platform_type": "hunyuan",
Expand Down
Binary file modified docs/img/wx_01.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 030c82e

Please sign in to comment.