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

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

Open
manatlan opened this issue Nov 9, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@manatlan
Copy link

manatlan commented Nov 9, 2024

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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants