gpt4free
gpt4free copied to clipboard
multiple values for keyword argument 'stream'
Code:
import g4f
import asyncio
async def main():
response = await g4f.ChatCompletion.create_async(
model="gpt-4",
provider=g4f.Provider.Bing,
messages=[{"role": "user", "content": "Hello world"}],
stream=True,
)
print(response)
asyncio.run(main())
Error:
TypeError: g4f.Provider.Bing.Bing.create_async_generator() got multiple values for keyword argument 'stream'
create_async doesn't support stream=True,
Bumping this issue because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again.
create_async doesn't support stream=True,
@hlohaus Hi, do you have an example for a small code snippet where you can use stream=True?
I want to basically make it stream the response in the command line, is it possible?
Thank you.
I have included the AsyncClient with examples in the documentation.
Bumping this issue because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again.