pypi: https://pypi.org/project/g4f/0.1.3.5
pip install -U g4f
Stable GPT-4 with 3 providers !!
import g4f
response = g4f.ChatCompletion.create(model="gpt-4", stream=True,
messages=[{"role": "user", "content": "If there are 10 birds on a tree and I shoot one, how many are left"}])
gpt_4 = Model(
name = 'gpt-4',
base_provider = 'openai',
best_provider = RetryProvider([
Aivvm, Myshell, AItianhuSpace,
])
)
What's Changed
- Add Myshell Provider by @hlohaus in #940
- AItianhuSpace Provider with GPT 4 added by @hlohaus in #941
Full Changelog: 0.0.3.4...0.1.3.5