VadimBoev / freegpt-webui-v2

(NEW) GPT 3.5/4 with a Chat Web UI. No API key required.
GNU General Public License v3.0
107 stars 108 forks source link

UI update, added image generator toggle and file upload input #28

Closed Mylinde closed 9 months ago

Mylinde commented 9 months ago

added toggle for image generator to sidebar and input fields for upload pictures and files to text input area

1706217636554 1706217636542

Mylinde commented 9 months ago

To get this features working as expected we need to merge some code from g4f.

VadimBoev commented 9 months ago

Which ones exactly?

Mylinde commented 9 months ago

Not sure, wich files exactly affected. Best way would be to take a look in the commits of g4f. So far it looks like it would be chat.json on client side, on server side backend.py, website.py.

VadimBoev commented 9 months ago

Okay, I'll deal with this issue later. Thank you for your contributions to the development of this repository!

Mylinde commented 9 months ago

The necessary code for image generating is this commit, but I haven't looked in detail. Looks like we just need to edit backend.py and chat.js. https://github.com/xtekky/gpt4free/pull/1426 For file upload i haven't looked around.

Mylinde commented 9 months ago

Closing the pull request because made some additional changes.