Bug description
Async API has changed since 0.3.2.9, apparently deliberately, now e.g. async_client.Completions.create(stream=True) needs to be awaited.
Documentation needs to be updated, e.g. in https://github.com/xtekky/gpt4free/blob/main/docs/async_client.md:
stream = await client.chat.completions.create(
model="gpt-4",
messages=[{"role": "user", "content": "Say this is a test"}],
stream=True,
...
)
Bug description Async API has changed since 0.3.2.9, apparently deliberately, now e.g.
async_client.Completions.create(stream=True)
needs to beawait
ed. Documentation needs to be updated, e.g. in https://github.com/xtekky/gpt4free/blob/main/docs/async_client.md:Environment