Releases: xtekky/gpt4free
Releases · xtekky/gpt4free
g4f v0.4.3.1
What's Changed
- Updates for Blackbox and DeepInfraChat providers new models by @kqlio67 in #2608
- Fix some issues in the demo by @hlohaus in #2619
Full Changelog: 0.4.3.0...0.4.3.1
g4f v0.4.3.0
Release Notes for Version 0.4.2.7
Release Date: January 26, 2025
Highlights
This release introduces significant enhancements, optimizations, and new features to improve functionality, robustness, and user experience. Special thanks to H Lohaus for their valuable contributions.
Key Updates and Features
Enhancements to docker-compose
- Port Update: Added
1337:8080
todocker-compose-slim.yml
anddocker-compose.yml
for enabling new functionalities. - Improved compatibility and setup flexibility across all running applications.
Provider Script Improvements
- Refactored and optimized providers such as CablyAI, Cloudflare, and DeepInfraChat to streamline inheritance and logic.
- Introduced
use_nodriver
attribute for enhanced customization in multiple provider classes. - Added a
format_prompt_qwen2
function to manage new prompt formats in HuggingFace.
HuggingFaceAPI Enhancements
- Better token handling with added
max_tokens
andcalculate_length
functions for accurate token counting and input management. - Enhanced robustness through improved handling of messages exceeding length limits.
- Streamlined model properties for better management.
Demo Mode Features
- New
demo.html
file, complete with supporting CSS and JS, to enable and showcase demo functionalities. - Updated backend to support demo mode, including functions like
create_app_with_gui_and_debug
andcreate_app_with_demo_and_debug
. - Integrated user-journey constraints for better demo tracking and usage monitoring.
Rate Limiting
- Integrated
flask_limiter
for API rate limiting in demo mode, improving UI stability under public access.
Error Handling Enhancements
- Improved edge case management by:
- Ignoring encoding errors in file uploads and
web_search
. - Enhancing fault tolerance in processes.
- Ignoring encoding errors in file uploads and
Code Structure and Robustness
- Numerous refactorings and fixes to improve maintainability, performance, and clarity across the codebase.
Recommendations for Testing
- Demo Mode: Test the new UI demo mode extensively, covering both frontend and backend functionalities.
- Token Handling: Validate HuggingFaceAPI with various models to ensure the new
max_tokens
limit functions as expected in production. - Rate Limiting: Verify the behavior of
flask_limiter
under varying traffic conditions in demo mode. - Error Handling: Ensure encoding error handling manages issues gracefully without bypassing critical workflows.
What's Changed
- Update provider capabilities and model support by @kqlio67 in #2600
- Update README.md by @Pashok111 in #2612
- Increase max token in HuggingfaceAPI by @hlohaus in #2614
- Fix issue reading provider model list by @hlohaus in #2618
New Contributors
- @Pashok111 made their first contribution in #2612
Thank you for using version 0.4.2.7! 🚀
Full Changelog: 0.4.2.6...0.4.3.0
g4f v0.4.2.6
What's Changed
- Update bulding and publishing docker image for arm64 by @hlohaus in #2605
- Fix async_generator can't be used in 'await' expression on Windows
Full Changelog: 0.4.2.5...0.4.2.6
g4f v0.4.2.5
Release Date: January 25, 2025
New Features
- OpenaiTemplate Provider: Added support for the OpenaiTemplate provider.
- MiniMax Providers: Introduced MiniMax providers and included them in the model list.
- HailuoAI Provider: Added support for the HailuoAI provider.
- Default Vision Model: Set a default vision model for better consistency.
Improvements
- Docker Image Update: Updated the base image of the main Docker image for improved performance and compatibility.
- Model Updates: Added MiniMax to
models.py
to reflect the latest supported models. - Lock File for
nodriver
: Added a lock file to ensure proper handling of thenodriver
setup.
Bug Fixes
- Browser Management: Ensured the browser is properly stopped after all calls by adding a
finally
block. - Unit Test Fixes: Addressed issues in unit tests for more reliable testing.
Removals
- Deprecated Webdriver Providers: Removed outdated or unused webdriver providers to streamline functionality.
by @hlohaus
Full Changelog: 0.4.2.4...0.4.2.5
g4f v0.4.2.4
What's Changed
- Add "Selecting a Provider" Documentation by @hlohaus in #2599
- Fix generate Images with OpenaiChat
- Add "flux" as alias in HuggingSpace providers
- Choice a random space provider in HuggingSpace provider
- Update requirements list in pypi packages
- Fix label of CablyAI and DeepInfraChat provider
Full Changelog: 0.4.2.3...0.4.2.4
g4f v0.4.2.3
g4f v0.4.2.2
What's Changed
Full Changelog: 0.4.2.1...0.4.2.2
g4f v0.4.2.1
What's Changed
Full Changelog: 0.4.2.0...0.4.2.1
g4f v0.4.2.0
What's Changed
- Support TitleGeneration, Reasoning in HuggingChat by @hlohaus in #2590
- Update model configurations, provider implementations, and documentation by @kqlio67 in #2577
- Restore AsyncClient streaming return type by @hlohaus in #2591
- Fix unicode errors in web_search by @hlohaus in #2592
- Improve model list in HuggingSpace, PollinationsAI
- Fix Image Generation in PollinationsAI
- Add Image Upload in PollinationsAI
- Support Usage, FinishReason, jsonMode in PollinationsAI
- Add Reasoning to Web UI
- Fix using provider api_keys in Web UI
- Add RequestLogin to HuggingChat
- Support Image Upload in HuggingChat
Windows Release: g4f-0.4.2.0.exe.zip
in the assets
Full Changelog: 0.4.1.2...0.4.2.0
g4f v0.4.1.2
What's Changed
- Provider Updates and Fixes by @kqlio67 in #2570
- Readd JsApi for Webview UI by @hlohaus in #2572
- Add missing webview requirements by @hlohaus in #2574
- Add Web Share Target to Mainifest
- Add target to GUI: /chat/?prompt=your input:
- Add local Font Awesome Free
- Update icons to new Font Awesome Version
- Add Providers to Model list in /v1/models
- Reefresh auth on 403 error in OpenaiChat
Full Changelog: 0.4.1.1...0.4.1.2