Skip to content

Releases: xtekky/gpt4free

g4f v0.4.7.2

21 Feb 12:45
ba2e6eb
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.4.7.1...0.4.7.2

g4f v0.4.7.1

21 Feb 10:17
4cfe35f
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.4.7.0...0.4.7.1

g4f v0.4.7.0

21 Feb 08:02
f989b52
Compare
Choose a tag to compare

What's Changed

  • Improve tools support in OpenaiTemplate and GeminiPro by @hlohaus in #2734
  • Update models in DDG, PerplexityLabs, Gemini
  • Fix issues with curl_cffi in new versions
  • Show only free providers by default
  • Add mixtral_small_24b model from DDG

PydanticAI Integration with G4F Client

Quick Setup

  1. Patch G4F to Use PydanticAI Models

In order to use PydanticAI models with G4F, you need to apply the necessary patch to the client. This can be done by importing apply_patch from g4f.tools.pydantic_ai.

from g4f.tools.pydantic_ai import apply_patch
apply_patch()  
  1. Create a Simple Agent

Now you are ready to create a simple agent that can interact with the LLM. The agent is initialized with a model, and you can also define a system prompt. Here's an example where a basic agent is created with the model g4f:Gemini:Gemini and a simple system prompt:

from pydantic_ai import Agent

# Define the agent
agent = Agent(
    'g4f:Gemini:Gemini', # g4f:provider:model_name or g4f:model_name
    system_prompt='Be concise, reply with one sentence.',
)

Read More: PydanticAI Integration with G4F Client

Full Changelog: 0.4.6.2...0.4.7.0

g4f v0.4.6.2

19 Feb 16:13
c3ed6d0
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.4.6.1...0.4.6.2

g4f v0.4.6.1

12 Feb 17:26
292d5b6
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.4.6.0...0.4.6.1

g4f v0.4.6.0

10 Feb 20:46
34b815b
Compare
Choose a tag to compare

Release Notes

We're excited to announce the release of g4f 0.4.6.0! This update brings several new features, improvements, and bug fixes aimed at enhancing both functionality and user experience. Below is a summary of the key changes:


New Features

  • Vision Models for HuggingFace Provider
    Expanded the HuggingFace provider to support vision models, opening up advanced image processing capabilities alongside traditional text models.
    [github.com]

  • Premium Model Support in Blackbox Provider
    Introduced premium model support with enhanced validation in the Blackbox provider. This improvement ensures a smoother experience with robust premium authentication workflows.
    [github.com]

  • Enhanced Unicode Image Handling
    Improved image processing in the copy_images module by adding better support for Unicode. This change enhances compatibility when dealing with files containing special characters.
    [github.com]

  • Improved Mobile Interface
    Upgraded the client interface with enhanced mobile responsiveness and refined sidebar interactions, ensuring a more seamless user experience on mobile devices.
    [github.com]


Improvements and Bug Fixes

  • Demo Mode Stability
    Resolved issues that were impacting demo mode functionality, resulting in a more stable and reliable demonstration environment.
    [github.com]

  • API Endpoint Corrections
    Fixed provider-specific API endpoint errors to guarantee smoother data exchange and better overall connectivity with various services.
    [github.com]

  • CablyAI Provider Refactor
    Reorganized the CablyAI provider by moving it into a dedicated needs_auth directory. This refactor clarifies its authentication requirements and simplifies future maintenance.
    [github.com]

  • PollinationsAI Alias Cleanup
    Removed duplicate model aliases in the PollinationsAI provider to prevent conflicts and ensure accurate model selection during runtime.
    [github.com]

  • Pipeline Tag Optimization for HuggingFace API
    Implemented caching for the pipeline tag and corrected its checking mechanism. These changes optimize performance by reducing redundant API calls and ensuring tag accuracy.
    [github.com]

  • CLI and Initialization Enhancements
    Updated the command-line interface and initialization routines, streamlining user interactions and improving overall stability.
    [github.com]


Miscellaneous

  • General Codebase Improvements
    Additional minor fixes and refactors have been merged into the codebase, enhancing code quality and laying the groundwork for future updates.
    [github.com]

We thank all the contributors for their hard work and valuable feedback. Enjoy the new features and improvements in g4f 0.4.6.0!
For more details, please check the full commit comparison.

New Contributors

g4f v0.4.5.5

07 Feb 18:36
17a0fd7
Compare
Choose a tag to compare

Release Notes

New Features

  • Introduced zerogpu_uuid: A new feature added to the demo, allowing for better identification and tracking in GPU-less environments.
  • FluxDev Integration: The G4F provider now supports FluxDev, enhancing the variety of models available for users.

Improvements

  • Enhanced Copy Images API: Improvements made to the Copy Images API for better performance and user experience.
  • Updated Webmanifest: The webmanifest has been revised to include the latest features and optimizations.

Bug Fixes

  • Resolved "Show New Window" Button Issue: Fixed a bug that prevented the "Show New Window" button from functioning correctly.
  • Exception Handling in Generate Function: Added checks to handle exceptions in the generate function, improving overall stability.

Commits Overview

  • Feb 5, 2025:

    • Added zerogpu_uuid to demo.
    • Implemented exception checks in the generate function.
  • Feb 6, 2025:

    • Integrated FluxDev into the G4F provider.
    • Updated webmanifest and added missing imports.
  • Feb 7, 2025:

    • Fixed the "Show New Window" button functionality.
    • Merged pull request #2688 and added new models while enhancing provider functionality.

What's Changed

For a complete comparison of changes, please refer to the commit history here [github.com].

g4f v0.4.5.4

05 Feb 13:34
9ba2831
Compare
Choose a tag to compare

Key Changes

  • Updated Documentation
    The README has been refreshed with updated instructions and details to better guide users through setup and usage.
    Source: [github.com]

  • New G4F Provider Added
    A new G4F provider has been integrated, expanding the available service options for users. This enhancement aims to improve overall compatibility and access to different AI models.
    Source: [github.com]

  • Removal of Login URL from Error Messages
    To avoid user confusion and streamline error handling, the login URL has been removed from error messages.
    Source: [github.com]

  • Model List Update and CablyAI Fixes
    The list of supported models has been updated. Additionally, issues with the model list display in the CablyAI integration have been fixed, ensuring more accurate model selection and improved reliability.
    Source: [github.com]


For More Information

For a detailed comparison of changes between version 0.4.5.3 and the current main branch, please check out the full diff:
[github.com]

These release notes compile the essential updates and improvements made in this version. We thank all contributors and community members for their valuable input and ongoing support.

Happy coding!

g4f v0.4.5.3

04 Feb 16:46
c0853e6
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.4.5.2...0.4.5.3

g4f v0.4.5.2

04 Feb 15:51
9cdcd3e
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.4.5.1...0.4.5.2