Skip to content

Commit

Permalink
Fix wenxin config in .env.template (#965)
Browse files Browse the repository at this point in the history
  • Loading branch information
TJJ120635 authored Dec 22, 2023
1 parent 681a8e2 commit e1ace14
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .env.template
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
5 changes: 2 additions & 3 deletions docs/docs/installation/sourcecode.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}
```
Expand Down

0 comments on commit e1ace14

Please sign in to comment.