cmd
pip install -U g4f
Stable GPT-4 with 3 providers !!
py
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"}])
py
gpt_4 = Model(
name = 'gpt-4',
base_provider = 'openai',
best_provider = RetryProvider([
Aivvm, Myshell, AItianhuSpace,
])
)
What's Changed
* Add Myshell Provider by hlohaus in https://github.com/xtekky/gpt4free/pull/940
* AItianhuSpace Provider with GPT 4 added by hlohaus in https://github.com/xtekky/gpt4free/pull/941
**Full Changelog**: https://github.com/xtekky/gpt4free/compare/0.0.3.4...0.1.3.5