diff --git a/chatchat-server/chatchat/settings.py b/chatchat-server/chatchat/settings.py index b1d9203..ee5c2fa 100644 --- a/chatchat-server/chatchat/settings.py +++ b/chatchat-server/chatchat/settings.py @@ -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" @@ -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", + ], + }), ] """模型平台配置"""