Registry / llm-agents / g4fu
library10.3.2.4pypypiunverified

Fork of the gpt4free repository providing a collection of powerful language models for educational purposes only. Current version 10.3.2.4, with rapid releases and occasional yanked versions.

pip install g4fu
INSTALL
IMPORT
SIG · G4FU
G
g4fu
llm-agentspythonv10.3.2.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Client
from g4f import Client
from g4fu import Client

Initialize a Client with an API key and send a chat completion request.

from g4fu import Client client = Client(api_key=os.environ.get('G4FU_API_KEY', '')) response = client.chat.completions.create( model='gpt-4', messages=[{'role': 'user', 'content': 'Hello!'}] ) print(response.choices[0].message.content)
Debug
Known issues
gotchaThe package is a fork and may have breaking changes from the original gpt4free. Always pin your version.
fix
Use g4fu==10.3.2.4 in your requirements.
affects: all
breakingVersion 10.3.2.2 was yanked due to module loading issues. Avoid using that version.
fix
Upgrade to 10.3.2.4 or later.
affects: 10.3.2.2
deprecatedThe package is intended for educational purposes only and may be removed or changed without notice.
fix
Do not rely on it in production.
affects: all
Upgrade
Version history
10.3.2.4latest on PyPI · released Aug 27, 2024
Audit
Dependencies

No dependency data recorded yet.

Agent activity
19 hits · last 30 days
node
16
Amazon
1
OpenAI (training)
1
Resources
g4fu — pip install g4fu · libregistry