summaryrefslogtreecommitdiffstats
path: root/examples/ecosia.py
diff options
context:
space:
mode:
authorH Lohaus <hlohaus@users.noreply.github.com>2024-04-20 20:12:36 +0200
committerGitHub <noreply@github.com>2024-04-20 20:12:36 +0200
commitda81d1e51aa5c625e4107bf8148cdb3c778f4001 (patch)
tree01b7677bfd51667e6b8bebe0ac72921aa48cba58 /examples/ecosia.py
parentMerge pull request #1862 from hlohaus/nem (diff)
parentDisable Bing integration test (diff)
downloadgpt4free-0.3.0.2.tar
gpt4free-0.3.0.2.tar.gz
gpt4free-0.3.0.2.tar.bz2
gpt4free-0.3.0.2.tar.lz
gpt4free-0.3.0.2.tar.xz
gpt4free-0.3.0.2.tar.zst
gpt4free-0.3.0.2.zip
Diffstat (limited to 'examples/ecosia.py')
-rw-r--r--examples/ecosia.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/examples/ecosia.py b/examples/ecosia.py
deleted file mode 100644
index 5a2ae520..00000000
--- a/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