Skip to content
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 dalle3最新版本报错:create image error: 'operation-location' #1965

Closed
2 tasks done
chenbe1990 opened this issue May 11, 2024 · 1 comment
Closed
2 tasks done

Comments

@chenbe1990
Copy link

前置确认

  • 我确认我运行的是最新版本的代码,并且安装了所需的依赖,在FAQS中也未找到类似问题。

⚠️ 搜索issues中是否已存在类似问题

  • 我已经搜索过issues和disscussions,没有跟我遇到的问题相关的issue

操作系统类型?

Linux

运行的python版本是?

python 3.7

使用的chatgpt-on-wechat版本是?

Latest Release

运行的channel类型是?

other

复现步骤 🕹

"azure_api_version" 如果是2024-02-01 报错:'operation-location'
只能使用2023-06-01-preview 版本。

问题描述 😯

查阅官网,发现openai库需要最新版才支持dalle3的2024-02-01版本,如果升级openai库又一推报错,请问如何修改才能使用最新版本的dalle3 ???
https://learn.microsoft.com/en-us/azure/ai-services/openai/dall-e-quickstart?tabs=dalle2%2Ccommand-line&pivots=programming-language-python#generate-images-with-dall-e

终端日志 📒

[DEBUG][2024-05-11 17:43:59][chat_channel.py:200] - [WX] ready to handle context: type=IMAGE_CREATE, content=小猫在跑步
[INFO][2024-05-11 17:43:59][bridge.py:61] - create bot chatGPTOnAzure for chat
[ERROR][2024-05-11 17:44:02][chat_gpt_bot.py:194] - create image error: 'operation-location'
[DEBUG][2024-05-11 17:44:02][chat_channel.py:182] - [WX] ready to decorate reply: Reply(type=ERROR, content=图片生成失败)
@6vision
Copy link
Collaborator

6vision commented May 21, 2024

可以测试这个pr是否可以解决 #1809

@6vision 6vision closed this as completed May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants