github xtekky/gpt4free 0.5.8.0
g4f v0.5.8.0

latest releases: 0.6.1.6, 0.6.1.5, 0.6.1.4...
one month ago

๐Ÿš€ 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 to sse_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 to deepseek-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 with sse_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: 0.5.7.6...0.5.8.0

Don't miss a new gpt4free release

NewReleases is sending notifications on new releases.