-
Notifications
You must be signed in to change notification settings - Fork 876
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配置好之后运行报错 #347
Comments
谢谢,我们更新下 |
cxjava
added a commit
to cxjava/xiaogpt
that referenced
this issue
Oct 30, 2023
frostming
pushed a commit
that referenced
this issue
Oct 30, 2023
—verbose |
可能是我的网络问题,今天早上可以运行成功了 |
好的 |
自问自答,已经找到了方案。 https://zhuanlan.zhihu.com/p/674880947 https://www.cnblogs.com/qsing/p/17362395.html 重要的是要用教育邮箱申请成功率高,前几次都是用一般邮箱申请,被驳回了5次。。。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
日志如下:
问题:查一下吴江五等于几? 以下是小爱的回答: 这个小爱还在学习呢,不如你问我,你会做什么,先了解一下我的功能吧 以下是 CHATGPTAPI 的回答: [10/21/23 22:11:19] DEBUG Edge TTS with voice=zh-CN-XiaoxiaoNeural xiaogpt.py:347 ERROR 'ChatGPTBot' object has no attribute 'deployment_id' xiaogpt.py:391
抱歉因为不熟悉python,没法直接提pr。
将
if openai.api_type == "azure": kwargs["deployment_id"] = self.deployment_id
改为
if openai.api_type == "azure": kwargs["deployment_id"] = self.default_options["engine"]
即可正常运行。
所以此处应该是个bug。麻烦修复下。
另外给使用azure的同学做个参考:
--deployment_id gpt-35-turbo(直接命名为model_name,这样各种api兼容性比较好) --api_base https://xxx(resource_name).openai.azure.com 这样使用即可
The text was updated successfully, but these errors were encountered: