update
This commit is contained in:
parent
3e0ea312c8
commit
0450d2e88a
@ -117,7 +117,7 @@ python -m streamlit run ./InternLM.py --theme.base dark --server.port 8501
|
|||||||
### 三、使用第三方模型 API
|
### 三、使用第三方模型 API
|
||||||
|
|
||||||
#### 1. 智谱 - ChatGLM_Turbo
|
#### 1. 智谱 - ChatGLM_Turbo
|
||||||
|
|
||||||
智谱 - ChatGLM Turbo 的 API key 获取(收费,可免费试用):https://maas.aminer.cn
|
智谱 - ChatGLM Turbo 的 API key 获取(收费,可免费试用):https://maas.aminer.cn
|
||||||
|
|
||||||
运行命令:
|
运行命令:
|
||||||
@ -126,6 +126,8 @@ python -m streamlit run ./InternLM.py --theme.base dark --server.port 8501
|
|||||||
python -m streamlit run ./ChatGLM_Turbo.py --theme.base dark --server.port 8501
|
python -m streamlit run ./ChatGLM_Turbo.py --theme.base dark --server.port 8501
|
||||||
```
|
```
|
||||||
|
|
||||||
|
说明:当前代码只对 pip install zhipuai==1.0.7 有效,对最新版本不兼容。
|
||||||
|
|
||||||
#### 2. 讯飞 - 星火大模型
|
#### 2. 讯飞 - 星火大模型
|
||||||
|
|
||||||
讯飞 - 星火大模型的 API key 获取(收费,可免费试用):https://xinghuo.xfyun.cn
|
讯飞 - 星火大模型的 API key 获取(收费,可免费试用):https://xinghuo.xfyun.cn
|
||||||
@ -134,4 +136,4 @@ python -m streamlit run ./ChatGLM_Turbo.py --theme.base dark --server.port 8501
|
|||||||
|
|
||||||
```
|
```
|
||||||
python -m streamlit run ./星火大模型.py --theme.base dark --server.port 8501
|
python -m streamlit run ./星火大模型.py --theme.base dark --server.port 8501
|
||||||
```
|
```
|
||||||
|
@ -13,9 +13,11 @@ try:
|
|||||||
import zhipuai
|
import zhipuai
|
||||||
except:
|
except:
|
||||||
import os
|
import os
|
||||||
os.system('pip install zhipuai')
|
os.system('pip install zhipuai==1.0.7')
|
||||||
import zhipuai
|
import zhipuai
|
||||||
|
|
||||||
|
# 说明:当前代码只对 pip install zhipuai==1.0.7 有效,对最新版本不兼容。
|
||||||
|
|
||||||
# 从官网获取 API_KEY
|
# 从官网获取 API_KEY
|
||||||
zhipuai.api_key = " "
|
zhipuai.api_key = " "
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user