xtekky / gpt4free

The official gpt4free repository | various collection of powerful language models
https://g4f.ai
GNU General Public License v3.0
62.42k stars 13.4k forks source link

POST /v1/images/generate -> AttributeError: 'Image' object has no attribute 'to_dict' #2342

Closed manatlan closed 1 week ago

manatlan commented 3 weeks ago
INFO:     x.x.x.x:49134 - "POST /v1/images/generate HTTP/1.1" 500 Internal Server Error
ERROR:root:'Image' object has no attribute 'to_dict'
Traceback (most recent call last):
  File "/app/g4f/api/__init__.py", line 222, in generate_image
    response_data = [image.to_dict() for image in response.data]
                     ^^^^^^^^^^^^^
AttributeError: 'Image' object has no attribute 'to_dict'
github-actions[bot] commented 2 weeks ago

Bumping this issue because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again.

hlohaus commented 1 week ago

This issue is fixed. 👍