github xtekky/gpt4free v6.6.2
Release v6.6.2

11 hours ago

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.2.

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.2 โ€” cleaner internals, more robust providers, and fewer surprises! ๐Ÿš€๐Ÿ”งโœจ

Full Changelog: v6.5.7...v6.6.2

g4f v6.6.2

Download Options

Python Package:

  • PyPI: pip install g4f==v6.6.2

Executables:

  • Windows x64: g4f-windows-v6.6.2-x64.zip
  • Linux x64: g4f-linux-v6.6.2-x64
  • Linux ARM64: g4f-linux-v6.6.2-arm64
  • macOS x64: g4f-macos-v6.6.2-x64
  • macOS ARM64: g4f-macos-v6.6.2-arm64

System Packages:

  • WinGet: winget install gpt4free

Docker:

  • docker pull hlohaus789/g4f:v6.6.2
  • docker pull hlohaus789/g4f:v6.6.2-slim

๐Ÿ’ป Having trouble with the .exe from this release?
๐Ÿ‘‰ Check out the Windows launcher for GPT4Free instead:
๐Ÿ”— https://github.com/gpt4free/g4f.exe ๐Ÿš€

Don't miss a new gpt4free release

NewReleases is sending notifications on new releases.