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 likedeepseek-r1
andsonar-reasoning
. This fix ensures that all responses are correctly converted to strings, preventingTypeError
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
- Docker Setup: Updated the Docker instructions in the README to clarify directory setup and x64-only support. [github.com]
- New Providers:
- Added
BlackboxAPI
as a new provider. [github.com] [github.com] - Updated
CablyAI
provider, including API key support. [github.com] [github.com] - Updated
Liaobots
model support and alias entries. [github.com] [github.com] - Updated
DeepInfraChat
provider with new models. [github.com]
- Added
- Disabled Providers:
DarkAI
provider has been moved to anot_working
directory. [github.com]GPROChat
provider has been disabled. [github.com]
- Provider Improvements:
- Enhanced handling for reasoning models and the
<think>
tags, forBlackboxAPI
andCablyAI
providers. [github.com] [github.com]
- Enhanced handling for reasoning models and the
Model Additions/Updates
- Added support for several new models, including:
deepseek-v3
[github.com]deepseek-r1
[github.com]o3-mini-low
[github.com]mixtral-small-28b
[github.com]llama-3.3-70b
phi-4
dbrx-instruct
[github.com]cably-80b
[github.com]glm-4
[github.com]
- Updated the number of providers for
gpt-4
,gpt-4o
,gpt-4o-mini
to reflect current status. [github.com] - Added
nemotron-70b
,dbrx-instruct
,p1
,cably-80b
,glm-4
mini_max
andevil
models. [github.com]
Code Improvements
- Import Refactoring: Moved
ImageResponse
fromg4f.image
tog4f.providers.response
to improve code organization. [github.com] - Module Restructuring: Split the
g4f/image.py
file intog4f/image/__init__.py
andg4f/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 inget_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