Skip to content

Commit 0d1033a

Browse files
author
yuehuazhang
committed
feature:hunyuan
1 parent a4d3d53 commit 0d1033a

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

chatchat-server/chatchat/settings.py

+14-1
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", "custom openai"] = "xinference"
296+
platform_type: t.Literal["xinference", "ollama", "oneapi", "fastchat", "openai", "bigmodel", "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": "hunyuan",
513+
"platform_type": "hunyuan",
514+
"api_base_url": "http://hunyuan.xxx.com/openapi/v1/",
515+
"api_key": "sk-proj-",
516+
"api_concurrencies": 5,
517+
"llm_models": [
518+
"hunyuan",
519+
],
520+
"embed_models": [
521+
"embedding-test",
522+
],
523+
}),
511524
]
512525
"""模型平台配置"""
513526

0 commit comments

Comments
 (0)