Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
g4f v0.5.8.0 source code.tar.gz | 2025-08-01 | 622.8 kB | |
g4f v0.5.8.0 source code.zip | 2025-08-01 | 778.9 kB | |
README.md | 2025-08-01 | 3.4 kB | |
Totals: 3 Items | 1.4 MB | 5 |
π Release Notes π
Highlights β¨
- β Fixes & Improvements: Improved provider status handling, error management, and API response processing for a smoother and more reliable experience.
- π οΈ Refactor: Switched from
see_stream
tosse_stream
for better streaming support across multiple providers. - π Model Updates: Updated default and fallback models for LambdaChat and Gemini providers to ensure more accurate and up-to-date responses.
- β οΈ Error Handling: Enhanced error detection and messaging in backend API and Kimi provider to better capture and report issues.
- π Documentation: Fixed typos and updated links for better clarity (including correction from "Inference API" to "Interference API").
- π§© Optional Dependencies: Added conditional import for
MarkItDown
with graceful failure if missing. - π¬ Chat Providers: Enabled more free providers and updated streaming defaults for improved user experience.
- πΌοΈ PollinationsAI: Improved image-generation response handling and progress reporting.
Detailed Changes π
Providers Updates π§
- Free2GPT, Startnest, and Reka providers: Fixed provider status flags to correctly represent working state.
- LambdaChat: Changed default model from
deepseek-v3-0324
todeepseek-r1
and cleaned up model aliases. - Kimi: Replaced manual status checking with proper async error raising, added specific model
"k2"
for chat requests, improved exception catching. - WeWordle: Simplified payload construction by removing unnecessary parameters.
- Reka: Set default streaming to
True
and modified cookie-fetching behavior for freshness. - GeminiPro: Updated model defaults and fallback models for better reliability.
- Copilot: Cleaned up model aliases and streamlined providers' comparison logic.
Streaming and API π
- Replaced all
see_stream
function calls withsse_stream
for improved server-sent-event streaming compatibility. - In backend API, enhanced exception handling including classy error messages with exception types for better debuggability.
- Added default
"user": "unknown"
field to cached data for traceability.
CLI & GUI Improvements π₯οΈ
- CLI: Added conditional import for the optional
MarkItDown
dependency, raising explicit errors when missing. - GUI server backend API: Wrapped provider model queries in error catch to return HTTP 401 if authentication is missing, improving security feedback.
Others π§Ή
md2html.py
tool now updates existing HTML files by replacing titles and text instead of rewriting everything, making docs generation more efficient.- Fixed typo: "Inference API" β "Interference API" in README and updated related documentation links.
- Improved indentation and condition checks in OpenaiTemplate response parser for cleaner code and fewer parsing errors.
- PollinationsAI: Added progress and reasoning status updates during async image generation, improving transparency in UI/UX.
Thanks π
Special thanks to all contributors, especially @hlohaus, for their continuous efforts improving g4f!
Upgrade now and experience the latest improvements and fixes! π
Full Changelog: https://github.com/xtekky/gpt4free/compare/0.5.7.6...0.5.8.0