snowby666 / poe-api-wrapper

👾 A Python API wrapper for Poe.com. With this, you will have free access to GPT-4, Claude, Llama, Gemini, Mistral and more! 🚀
https://pypi.org/project/poe-api-wrapper/
GNU General Public License v3.0
677 stars 81 forks source link

Fix issue with file handling in generate_file function #149

Closed sunnysktsang closed 1 month ago

sunnysktsang commented 1 month ago

Problem: The generate_file function in the utils.py module had a bug where the file streams were not managed properly, causing an "I/O operation on closed file" error when attempting to upload files. This error obstructed the functionality of uploading and processing files through the application.

Changes Made:

Tests Conducted:

Additional Notes: