From dd409d3f1ae3300146d43c7d2e870915cb79c9ef Mon Sep 17 00:00:00 2001 From: abc <98614666+xtekky@users.noreply.github.com> Date: Fri, 31 May 2024 16:17:34 +0100 Subject: remove ecosia --- etc/examples/ecosia.py | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 etc/examples/ecosia.py (limited to 'etc') diff --git a/etc/examples/ecosia.py b/etc/examples/ecosia.py deleted file mode 100644 index 5a2ae520..00000000 --- a/etc/examples/ecosia.py +++ /dev/null @@ -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()) \ No newline at end of file -- cgit v1.2.3