summaryrefslogtreecommitdiffstats
path: root/main.py
diff options
context:
space:
mode:
authorkqlio67 <kqlio67@users.noreply.github.com>2024-10-21 09:32:32 +0200
committerkqlio67 <kqlio67@users.noreply.github.com>2024-10-21 09:32:32 +0200
commitd10f5d6b4d21409398bd8a816b7b1e29002bb4c0 (patch)
tree2e2404468b482af4b89cd61379de50071cfeeb82 /main.py
parentTemporarily disconnected provider (g4f/Provider/nexra/NexraBlackbox.py) (diff)
downloadgpt4free-d10f5d6b4d21409398bd8a816b7b1e29002bb4c0.tar
gpt4free-d10f5d6b4d21409398bd8a816b7b1e29002bb4c0.tar.gz
gpt4free-d10f5d6b4d21409398bd8a816b7b1e29002bb4c0.tar.bz2
gpt4free-d10f5d6b4d21409398bd8a816b7b1e29002bb4c0.tar.lz
gpt4free-d10f5d6b4d21409398bd8a816b7b1e29002bb4c0.tar.xz
gpt4free-d10f5d6b4d21409398bd8a816b7b1e29002bb4c0.tar.zst
gpt4free-d10f5d6b4d21409398bd8a816b7b1e29002bb4c0.zip
Diffstat (limited to '')
-rw-r--r--main.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/main.py b/main.py
new file mode 100644
index 00000000..4631ac11
--- /dev/null
+++ b/main.py
@@ -0,0 +1,9 @@
+from g4f.client import Client
+
+client = Client()
+response = client.chat.completions.create(
+ model="blackboxai",
+ messages=[{"role": "user", "content": "Hello"}],
+ # Add any other necessary parameters
+)
+print(response.choices[0].message.content)