binary-husky / binary-husky/gpt_academic

[Bug]: edge_gpt_free: broken image generation

Open
#2,297 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
71.3k
Forks
8.3k
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug | 简述

After https://github.com/binary-husky/gpt_academic/commit/cd411c2eeae1180b3880da1d6fe8c6c341ed60f3 `ImageGen` and `ImageGenAsync` classes were removed, but they are still used in the code for image generation:

https://github.com/binary-husky/gpt_academic/blob/d6bde0fa54373309bd05823a49bda8da019d2c77/request_llms/edge_gpt_free.py#L543-L546

https://github.com/binary-husky/gpt_academic/blob/d6bde0fa54373309bd05823a49bda8da019d2c77/request_llms/edge_gpt_free.py#L1032-L1036

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in request_llms/edge_gpt_free.py at lines 543-546 and 1032-1036, then inspect commit cd411c2 to understand the removal of ImageGen and ImageGenAsync. Trace the current image-generation path and verify it works after the references are brought in line with the available API.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
ai, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.