transitive-bullshit/bing-chat

Support return AI-generated image

nociza opened this issue · 1 comments

The newest version of Bing chat is able to respond to prompts with a DALL-E generated image, so I'm wondering if the api can get return the generated image. Currently the response to a prompt like draw me a cat with a large top hat is

I'm sorry but I'm not able to draw pictures as I am a text-based conversational agent. However, I can suggest some websites where you can find images of cats with top hats. Would you like me to do that?

You have to be in creative mode to generate image. But the library still needs to parse the bot response and send it to the creator @transitive-bullshit

https://github.com/nitanmarcel/sydney-telegram/blob/main/bot_chat.py#L243

https://github.com/nitanmarcel/sydney-telegram/blob/main/bot_img.py#L22