Skip to content

Commit

Permalink
feature:hunyuan
Browse files Browse the repository at this point in the history
  • Loading branch information
yuehuazhang committed Jan 16, 2025
1 parent a4d3d53 commit 0d1033a
Showing 1 changed file 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", "custom openai"] = "xinference"
platform_type: t.Literal["xinference", "ollama", "oneapi", "fastchat", "openai", "bigmodel", "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": "hunyuan",
"platform_type": "hunyuan",
"api_base_url": "http://hunyuan.xxx.com/openapi/v1/",
"api_key": "sk-proj-",
"api_concurrencies": 5,
"llm_models": [
"hunyuan",
],
"embed_models": [
"embedding-test",
],
}),
]
"""模型平台配置"""

Expand Down

0 comments on commit 0d1033a

Please sign in to comment.