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
957 stars 113 forks source link

Fix issue with file handling in generate_file function #149

Closed sunnysktsang closed 6 months ago

sunnysktsang commented 6 months 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: