FuseFairy / DiscordBot-EdgeGPT

Using Copilot, Bing Image Creator and DALLE-3 on Discord bot.
GNU General Public License v2.0
160 stars 41 forks source link

More verbose errors #134

Closed Zaazu closed 8 months ago

Zaazu commented 9 months ago

When generating images, it seems like Error:'NoneType' object is not iterable is the default error, would it be possible to add more details as to why the generation failed?

So far, the NoneType error shows up when the prompt isn't "Descriptive Enough", or when you get rate limited: image image

I can find and add more errors to the issue if you like

Thanks

FuseFairy commented 9 months ago

Is your auth_coookie frequently used by many people?

Zaazu commented 9 months ago

Just this bot, but a few people use it yes. It would just be nice if the bot would output the problem to the chat, rather than return Error:'NoneType'. I had a quick look through the code and I think it's more to do with the edgegpt library.

I saw they updated the library but I'm not sure if it'll fix the issue

FuseFairy commented 9 months ago

A temporary solution would be for those who need access to upload their own auth_cookie. After all, it seems like there's a rate limit on your end.

Zaazu commented 9 months ago

Yeah like I said, the error just needs to be displayed on discord 😄

FuseFairy commented 9 months ago

I think it might be because I haven't imposed restrictions on those using the same auth_cookie.

FuseFairy commented 9 months ago

if impose a restriction, it means that only one person can use the auth_cookie at a time, so it would be better to ask each person to upload their own

Zaazu commented 9 months ago

I don't think it needs limited, just needs to report back the error messages from bing image generator

FuseFairy commented 9 months ago

ok, I'd appreciate it if you'd help me add errors.

Zaazu commented 9 months ago

I'll take a closer look at the code and see what I can do