Closed Mylinde closed 9 months ago
To get this features working as expected we need to merge some code from g4f.
Which ones exactly?
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.
Okay, I'll deal with this issue later. Thank you for your contributions to the development of this repository!
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.
Closing the pull request because made some additional changes.
added toggle for image generator to sidebar and input fields for upload pictures and files to text input area