github xtekky/gpt4free 0.4.5.1
g4f v0.4.5.1

15 hours ago

gpt4free v0.4.5.1 Release Notes

This release includes several bug fixes, provider updates, and model additions to improve the stability and functionality of gpt4free.

Bug Fixes

  • __str__ Type Error: Resolved an issue where the __str__ method returned a non-string type (specifically, a list) when using reasoning models like deepseek-r1 and sonar-reasoning. This fix ensures that all responses are correctly converted to strings, preventing TypeError exceptions. [github.com] [github.com]
  • UI Model Selection: Improved the custom model selection in the UI, making it more user-friendly. [github.com] [github.com]

Provider Updates

Model Additions/Updates

Code Improvements

  • Import Refactoring: Moved ImageResponse from g4f.image to g4f.providers.response to improve code organization. [github.com]
  • Module Restructuring: Split the g4f/image.py file into g4f/image/__init__.py and g4f/image/copy_images.py for better modularity. [github.com]
  • UI Enhancements: Improved the logic for managing conversation states and handling input for image generations in the client UI. [github.com]

Documentation

  • Updated providers-and-models.md to include new providers, models, and their capabilities. [github.com]
  • Added detailed information about provider statuses and model capabilities in the documentation. [github.com]

Other

  • Fixed an issue with include in mocks.py. [github.com]
  • The user_data_dir variable was corrected in get_nodriver. [github.com]

This release aims to provide a more stable and feature-rich experience with gpt4free. Please report any issues encountered on the project's GitHub page.

What's Changed

  • 2.1 feb by @hlohaus in #2680
  • Fix error str returned non-string (type list) when using reasonin model by @Juxoola in #2676
  • Updated some providers, added new providers and added new models by @kqlio67 in #2679

New Contributors

Full Changelog: 0.4.5.0...0.4.5.1

Don't miss a new gpt4free release

NewReleases is sending notifications on new releases.