From e91f82d1a37651a4b48b77b75fea39f3c7a78d07 Mon Sep 17 00:00:00 2001 From: Del Date: Tue, 11 Jun 2024 10:48:01 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=B7=BB=E5=8A=A0=E9=83=A8=E5=88=86=20?= =?UTF-8?q?OpenAI=20=E8=B4=A6=E5=8F=B7=E6=97=A0=E6=B3=95=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=20gpt4=20=E7=B3=BB=E5=88=97=E6=A8=A1=E5=9E=8B=E7=9A=84?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/faq.md | 26 +++++++++++++++----------- docs/todo.md | 2 +- 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/docs/faq.md b/docs/faq.md index 818e7d8..8e8ed4c 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -126,18 +126,9 @@ OPENAI_MODEL=moonshot-v1-8k OPENAI_API_KEY=$MOONSHOT_API_KEY ``` -### Q:是否支持 Azure OpenAI,如何配置? +### Q:提示“LLM 响应异常 404 The model `gpt-4o` does not exist” -如果你想使用 [Azure OpenAI Service](https://azure.microsoft.com/en-us/products/ai-services/openai-service),可通过配置以下环境变量开启: - -```shell -OPENAI_API_VERSION=2024-04-01-preview -AZURE_OPENAI_API_KEY=你的密钥 -AZURE_OPENAI_ENDPOINT=https://你的资源名.openai.azure.com -AZURE_OPENAI_DEPLOYMENT=你的模型部署名,比如:gpt-35-turbo-instruct -``` - -注意:Azure OpenAI Studio 部署页面显示的模型版本号,可能并非实际的 `OPENAI_API_VERSION` 值。请打开模型 Play Ground 页面,选择你想用的部署(模型),然后点击示例代码,查看里面的 `api_version` 并替换上面的 `OPENAI_API_VERSION` 的值。 +当前 OpenAI 账号没有使用 `gpt-4` 系列模型的权限,请切换到 `gpt-3` 系列模型,比如:`gpt-3.5-turbo`,相关 [issue](https://github.com/idootop/mi-gpt/issues/30#issuecomment-2154656498)。 ### Q:提示“LLM 响应异常,401 Invalid Authentication” @@ -151,6 +142,19 @@ AZURE_OPENAI_DEPLOYMENT=你的模型部署名,比如:gpt-35-turbo-instruct 模型路径不存在或者代理 IP 被风控。请检查 `OPENAI_BASEURL` 等环境变量是否配置正确,或切换代理节点后重试,相关 [issue](https://github.com/idootop/mi-gpt/issues/43)。 +### Q:是否支持 Azure OpenAI,如何配置? + +如果你想使用 [Azure OpenAI Service](https://azure.microsoft.com/en-us/products/ai-services/openai-service),可通过配置以下环境变量开启: + +```shell +OPENAI_API_VERSION=2024-04-01-preview +AZURE_OPENAI_API_KEY=你的密钥 +AZURE_OPENAI_ENDPOINT=https://你的资源名.openai.azure.com +AZURE_OPENAI_DEPLOYMENT=你的模型部署名,比如:gpt-35-turbo-instruct +``` + +注意:Azure OpenAI Studio 部署页面显示的模型版本号,可能并非实际的 `OPENAI_API_VERSION` 值。请打开模型 Play Ground 页面,选择你想用的部署(模型),然后点击示例代码,查看里面的 `api_version` 并替换上面的 `OPENAI_API_VERSION` 的值。 + ## 🚗 运行原理类问题 ### Q:什么是唤醒模式? diff --git a/docs/todo.md b/docs/todo.md index 01d20b2..effcf96 100644 --- a/docs/todo.md +++ b/docs/todo.md @@ -31,7 +31,7 @@ - ✅ 添加对多账号/设备支持的相关说明 - ✅ 添加群晖 docker 使用教程 - ✅ 添加国内使用 Docker 配置镜像代理的相关说明。https://github.com/idootop/mi-gpt/issues/31 -- 添加关于 OpenAI gpt4 模型不存在的相关说明 +- ✅ 添加关于 OpenAI gpt4 模型不存在的相关说明 - 添加关于唤醒小爱、唤醒词、唤醒模式的说明和注意事项。 - 添加关于 playingCommand 的详细说明,默认不需要配置。 - 添加常见小爱音箱型号的支持情况和参数列表。