github xtekky/gpt4free 0.2.3.3
g4f v-0.2.3.3

latest releases: 0.3.3.4, 0.3.3.3, 0.3.3.2...
8 months ago

Local inference is now supported:

from g4f.local import LocalClient

client   = LocalClient()

response = client.chat.completions.create(
    model    = 'orca-mini-3b',
    messages = [{"role": "user", "content": "hi"}],
    stream   = True
)

for token in response:
    print(token.choices[0].delta.content or "")

Full Changelog: 0.2.3.1...0.2.3.3

Don't miss a new gpt4free release

NewReleases is sending notifications on new releases.