From 1502c3cbc94ce77c673054942c6ed94043ca713b Mon Sep 17 00:00:00 2001 From: TJJ <43161566+TJJ120635@users.noreply.github.com> Date: Fri, 22 Dec 2023 11:45:11 +0800 Subject: [PATCH] Fix wenxin config in .env.template (#965) --- .env.template | 2 +- docs/docs/installation/sourcecode.md | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.env.template b/.env.template index 1a8a7c7e0..046c4be56 100644 --- a/.env.template +++ b/.env.template @@ -180,7 +180,7 @@ TONGYI_PROXY_API_KEY={your-tongyi-sk} ## Baidu wenxin #WEN_XIN_MODEL_VERSION={version} #WEN_XIN_API_KEY={your-wenxin-sk} -#WEN_XIN_SECRET_KEY={your-wenxin-sct} +#WEN_XIN_API_SECRET={your-wenxin-sct} ## Zhipu #ZHIPU_MODEL_VERSION={version} diff --git a/docs/docs/installation/sourcecode.md b/docs/docs/installation/sourcecode.md index 6a08eb3ea..bab7399b4 100644 --- a/docs/docs/installation/sourcecode.md +++ b/docs/docs/installation/sourcecode.md @@ -174,13 +174,12 @@ or git clone https://huggingface.co/moka-ai/m3e-large ``` -Configure the proxy and modify LLM_MODEL, PROXY_API_URL and API_KEY in the `.env`file +Configure the proxy and modify LLM_MODEL, MODEL_VERSION, API_KEY and API_SECRET in the `.env`file ```python # .env LLM_MODEL=wenxin_proxyllm -PROXY_SERVER_URL={your_service_url} -WEN_XIN_MODEL_VERSION={version} +WEN_XIN_MODEL_VERSION={version} # ERNIE-Bot or ERNIE-Bot-turbo WEN_XIN_API_KEY={your-wenxin-sk} WEN_XIN_API_SECRET={your-wenxin-sct} ```