#Release Notes ๐โจ
Thanks to everyone who contributed! Special shoutouts to @3mora2 and @hlohaus for recent fixes and refactors. Below are the highlights for v6.6.0.
Highlights ๐
-
Improved Copilot auth/cookie handling ๐ก๏ธ
- Better detection of Copilot anonymous/auth cookies during token retrieval to make login/anonymous flows more reliable.
-
LMArena provider fixes & stabilization ๐ง
- Fixed multiple LMArena flow bugs (session/evaluation handling, streaming parsing and event handling).
- Improved UUIDv7 generation used by LMArena to better match expected browser semantics.
- More robust handling of model selection and POST/stream endpoints.
-
PollinationsAI refactor & model-selection improvements ๐จ
- Refactored model-selection logic and default system behavior.
- More accurate audio/media detection and automatic switching to audio-capable model when necessary.
-
Cloudflare provider adjustments โ๏ธ
- Marked Cloudflare AI provider as not working by default in this release (working flag set to False).
- Other internal adjustments to endpoint configuration and nodriver usage.
-
OpenAI HAR handling updates ๐ต๏ธโโ๏ธ
- Changes to har_file handling (crypt import handling, StreamSession usage, cookie directory logic) improving robustness when importing HAR files.
-
Integration with pydantic_ai rework ๐งฉ
- Major overhaul of the pydantic_ai integration: new AIModel class now uses chat-model class, response processing, usage parsing, and patched infer_model.
- This is a substantial internal change โ see Migration Notes below.
-
Cleanup & deletions ๐งน
- Removed older uuid integration file and other cleanup across integrations/providers.
- Large number of deletions/cleanup for modernization and simplification (internal reorg).
Bugfixes ๐
- Fixed LMArena streaming parsing (line prefixes, JSON handling) to reduce false errors and improve finalization events.
- Fixes to Copilot token/cookie loops to avoid waiting forever when cookies are already present.
- PollinationsAI: ensure audio model is selected when attachments contain audio and fix several model aliasing issues.
- Miscellaneous provider improvements, small bugfixes and stability fixes across several providers.
Developer notes / Breaking changes โ ๏ธ
- pydantic_ai integration changed significantly โ if you rely on the old behavior/patching, please review the new AIModel and infer_model patching. You may need to update any custom integrations that assumed the previous classes/names.
- Some internal files were removed or renamed (for example: integration/uuid.py was deleted). If you depended on these, please adapt to the new utilities.
- Cloudflare provider marked as not working by default โ you may need to enable or patch if you still want to use it.
Performance & internal refactor ๐งญ
- Several providers were refactored for consistency (stream handling, JsonRequest yields, StreamSession usage).
- Reduced duplicated logic and cleaned many modules for maintainability.
Contributors ๐
- @3mora2 โ auth/cookie improvements, tests/fixes
- @hlohaus โ LMArena fixes, PollinationsAI refactor, general cleanups
- Other contributors across the repo โ thank you!
How to upgrade ๐ผ
- Standard pip/installation steps (or pull latest repository). Review CHANGELOG and run tests for providers you rely on, especially if you integrate pydantic_ai or use LMArena/PollinationsAI/Cloudflare providers.
Contact / Help ๐ฌ
- If you encounter regressions, please open an issue with logs and repro steps. Include provider name, used model, and any HAR/session data if relevant.
Enjoy v6.6.0 โ cleaner internals, more robust providers, and fewer surprises! ๐๐งโจ
Full Changelog: v6.5.7...v6.6.0
g4f v6.6.0
Download Options
Python Package:
- PyPI:
pip install g4f==v6.6.0
Executables:
- Windows x64:
g4f-windows-v6.6.0-x64.zip - Linux x64:
g4f-linux-v6.6.0-x64 - Linux ARM64:
g4f-linux-v6.6.0-arm64 - macOS x64:
g4f-macos-v6.6.0-x64 - macOS ARM64:
g4f-macos-v6.6.0-arm64
System Packages:
- WinGet:
winget install gpt4free
Docker:
docker pull hlohaus789/g4f:v6.6.0docker pull hlohaus789/g4f:v6.6.0-slim
๐ป Having trouble with the .exe from this release?
๐ Check out the Windows launcher for GPT4Free instead:
๐ https://github.com/gpt4free/g4f.exe ๐