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

Not Receiving Images #662

Open
madranet opened this issue Jan 5, 2025 · 2 comments
Open

Not Receiving Images #662

madranet opened this issue Jan 5, 2025 · 2 comments

Comments

@madranet
Copy link

madranet commented Jan 5, 2025

Telegram version: 11.6.270262 Stable
MacOS version: 11.7.10 (20G1427)
Bot version: ??? whatever the current one is

When I send a request for an image...

Screenshot 2025-01-05 at 16 18 27

Bot acts as if "Something" is being generated....

Screenshot 2025-01-05 at 16 17 43

But nothing appears.

/stats confirms no image was generated:

Screenshot 2025-01-05 at 16 22 09

Apart from specifying Dall-e-3, .env is left on defaults as regards image options, I have credit on my API account and text based chat is working fine. Am I doing something wrong here, or is the /image function broken?

Screenshot 2025-01-05 at 16 26 39

@madranet
Copy link
Author

madranet commented Jan 5, 2025

FOLLOWUP: I've just realised that the Bot logs errors to terminal. Here's the meat'n'potatoes:

openai.BadRequestError: Error code: 400 - {'error': {'code': 'invalid_size', 'message': 'The size is not supported by this model.', 'param': None, 'type': 'invalid_request_error'}}

I tried explicitly uncommenting the IMAGE_SIZE=1024x1024 line in .env but still got the same error. Dittot with setting any other size or with setting IMAGE_QUALITY=standard or switching to IMAGE_MODEL=dall-e-3 and using IMAGE_SIZE=512x512

@hdmbn
Copy link

hdmbn commented Jan 11, 2025

I had the same issue, but it got fixed by uncommenting all image variables in env:

IMAGE_MODEL=dall-e-3
IMAGE_QUALITY=hd
IMAGE_STYLE=natural
IMAGE_SIZE=1024x1024
IMAGE_FORMAT=document

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants