From 164a5a017732e47e3993573e79c63cbb23d6ace8 Mon Sep 17 00:00:00 2001 From: Lumia <130642629+SpeedupMaster@users.noreply.github.com> Date: Sat, 28 Sep 2024 18:30:00 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20docs:=20update=20model-provider?= =?UTF-8?q?=20document=20(#4181)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update model-provider.zh-CN.mdx 增加混元模型 * Update model-provider.mdx add HUNYUAN Model --- .../environment-variables/model-provider.mdx | 16 ++++++++++++++++ .../model-provider.zh-CN.mdx | 16 ++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/docs/self-hosting/environment-variables/model-provider.mdx b/docs/self-hosting/environment-variables/model-provider.mdx index e6377bff4e75..19b2237d85ec 100644 --- a/docs/self-hosting/environment-variables/model-provider.mdx +++ b/docs/self-hosting/environment-variables/model-provider.mdx @@ -479,4 +479,20 @@ If you need to use Azure OpenAI to provide model services, you can refer to the - Default: - - Example: `xxxxxx...xxxxxx` +## HUNYUAN + +### `HUNYUAN_API_KEY` + +- Type: Required +- Description: This is the API key you applied from HUNYUAN service +- Default: - +- Example: `xxxxxx...xxxxxx` + +### `HUNYUAN_MODEL_LIST` + +- Type: Optional +- Description: Used to control the model list, use `+` to add a model, use `-` to hide a model, use `model_name=display_name` to customize the display name of a model, separated by commas. Definition syntax rules see [model-list][model-list] +- Default: `-` +- Example: `-all,+hunyuan-lite,+hunyuan-standard` + [model-list]: /docs/self-hosting/advanced/model-list diff --git a/docs/self-hosting/environment-variables/model-provider.zh-CN.mdx b/docs/self-hosting/environment-variables/model-provider.zh-CN.mdx index e56b07633ea4..4d61889b4651 100644 --- a/docs/self-hosting/environment-variables/model-provider.zh-CN.mdx +++ b/docs/self-hosting/environment-variables/model-provider.zh-CN.mdx @@ -477,4 +477,20 @@ LobeChat 在部署时提供了丰富的模型服务商相关的环境变量, - 默认值:- - 示例:`xxxxxx...xxxxxx` +## 腾讯混元 + +### `HUNYUAN_API_KEY` + +- 类型:必选 +- 描述:这是你在 腾讯混元 服务中申请的 API 密钥 +- 默认值:- +- 示例:`xxxxxx...xxxxxx` + +### `HUNYUAN_MODEL_LIST` + +- 类型:可选 +- 描述:用来控制模型列表,使用 `+` 增加一个模型,使用 `-` 来隐藏一个模型,使用 `模型名=展示名<扩展配置>` 来自定义模型的展示名,用英文逗号隔开。模型定义语法规则见 [模型列表][model-list] +- 默认值:`-` +- 示例:`-all,+hunyuan-lite,+hunyuan-standard` + [model-list]: /zh/docs/self-hosting/advanced/model-list