docs: 添加关于 OpenAI 401 等错误 code 的相关说明

This commit is contained in:
WJG 2024-06-11 09:25:58 +08:00
parent dc5215cd43
commit 429d8cdad3
No known key found for this signature in database
GPG Key ID: 258474EF8590014A
2 changed files with 14 additions and 1 deletions

View File

@ -123,6 +123,18 @@ AZURE_OPENAI_DEPLOYMENT=你的模型部署名比如gpt-35-turbo-instruct
注意Azure OpenAI Studio 部署页面显示的模型版本号,可能并非实际的 `OPENAI_API_VERSION` 值。请打开模型 Play Ground 页面,选择你想用的部署(模型),然后点击示例代码,查看里面的 `api_version` 并替换上面的 `OPENAI_API_VERSION` 的值。
### Q提示“LLM 响应异常401 Invalid Authentication”
无效的 `OpenAI_API_KEY`。请检查 `OpenAI_API_KEY` 是否能正常使用,以及对应环境变量是否生效,相关 [issue](https://github.com/idootop/mi-gpt/issues/59)。
### Q提示“LLM 响应异常403 PermissionDeniedError”
代理 IP 被 Cloudflare 风控了,试试看切换代理节点。或者把环境变量里的 `HTTP_PROXY` 设置成空字符串 `HTTP_PROXY='' ` 关闭代理(仅适用于国产大模型),相关 [issue](https://github.com/idootop/mi-gpt/issues/33)。
### Q提示“LLM 响应异常404 Not Found”
模型路径不存在或者代理 IP 被风控。请检查 `OPENAI_BASEURL` 等环境变量是否配置正确,或切换代理节点后重试,相关 [issue](https://github.com/idootop/mi-gpt/issues/43)。
## 🚗 运行原理类问题
### Q什么是唤醒模式

View File

@ -29,7 +29,8 @@
- ✅ 添加关于 clone 项目本地运行提示找不到 bot 的相关说明。
- 添加国内设备代理配置相关的说明。https://github.com/idootop/mi-gpt/issues/29
- 添加国内设备使用 Docker 镜像配置镜像代理的说明。https://github.com/idootop/mi-gpt/issues/31
- 添加关于 OpenAI 401 账号 API_KEY 错误, 403 触发 IP 访问风控的说明。https://github.com/idootop/mi-gpt/issues/19https://github.com/idootop/mi-gpt/issues/33
- ✅ 添加关于 OpenAI 401 账号 API_KEY 错误, 403 触发 IP 访问风控的说明。https://github.com/idootop/mi-gpt/issues/19https://github.com/idootop/mi-gpt/issues/33
- 添加关于 OpenAI 模型不存在的相关说明
- ✅ 添加关于 Node 项目下 MiGPT.create 参数配置的说明。 https://github.com/idootop/mi-gpt/issues/27
- ✅ 添加关于 Widnows 下 docker 启动参数配置的说明。https://github.com/idootop/mi-gpt/issues/26