-
Notifications
You must be signed in to change notification settings - Fork 7.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
修复适配azure的问题 #787
修复适配azure的问题 #787
Conversation
感谢PR,我不能在 以及,config-template.json 是不用更改的。因为它只是作为用户使用openai api的配置参考。 |
是的,原代码中适配Azure的参数有问题,必须要传入deployment_id,否则会抛异常”The API deployment for this resource does not exist“,这个deployment_id是在azure管理控制台上deploy模型时自己指定的名字。 config-template.json我重新commit一下。 |
8c980af
to
89e8f38
Compare
好的已合并,谢谢PR! |
{ 但是 报下面这个错误
|
@zhuyaguang 请问这个问题解决了吗,我也是遇到了同样的问题 |
@lanvent 请问这个问题怎么解决呢?我也遇到了这个问题 [WARNING][2023-04-12 14:40:14][chat_gpt_bot.py:134] - [CHATGPT] Exception: Must provide an 'engine' or 'deployment_id' parameter to create a <class 'openai.api_resources.chat_completion.ChatCompletion'> |
需要填写 azure_deployment_id 配置项 |
是的,填了azure_deployment_id之后可以用了,但是发现tool用不了,最后选择cloudflare转换azure接口 |
确实,用Azure Openai的API,会导致tool无法使用,请帮忙看下,如何修改插件的config.json? |
我配置的Azure Openai服务可以使用。 "use_azure_chatgpt": true, |
resole exception: "The API deployment for this resource does not exist. If you created the deployment within the last 5 minutes, please wait a moment and try again."