mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-06 02:30:41 -08:00
remove ecosia
This commit is contained in:
parent
ae404d720d
commit
dd409d3f1a
5 changed files with 0 additions and 70 deletions
|
|
@ -1,18 +0,0 @@
|
|||
import asyncio
|
||||
import g4f
|
||||
from g4f.client import AsyncClient
|
||||
|
||||
async def main():
|
||||
client = AsyncClient(
|
||||
provider=g4f.Provider.Ecosia,
|
||||
)
|
||||
async for chunk in client.chat.completions.create(
|
||||
[{"role": "user", "content": "happy dogs on work. write some lines"}],
|
||||
g4f.models.default,
|
||||
stream=True,
|
||||
green=True,
|
||||
):
|
||||
print(chunk.choices[0].delta.content or "", end="")
|
||||
print(f"\nwith {chunk.model}")
|
||||
|
||||
asyncio.run(main())
|
||||
Loading…
Add table
Add a link
Reference in a new issue