idootop / mi-gpt

🏠 将小爱音箱接入 ChatGPT 和豆包,改造成你的专属语音助手。
MIT License
7.86k stars 817 forks source link

使用azure openai要如何配置 #193

Closed kongqi987 closed 1 month ago

kongqi987 commented 1 month ago

ai服务自定义那里,我填了azure密匙,但是密匙不能空白,我也填了azure密匙,出错提示:

file:///usr/local/lib/node_modules/migpt-server/node_modules/openai/index.mjs:145 throw new Errors.OpenAIError("The OPENAI_API_VERSION environment variable is missing or empty; either provide it, or instantiate the AzureOpenAI client with an apiVersion option, like new AzureOpenAI({ apiVersion: 'My API Version' })."); ^

jieye-ericx commented 1 month ago

您好,请问您是怎么解决的?我也用的azure openAI服务,也有这个疑惑