From d10f5d6b4d21409398bd8a816b7b1e29002bb4c0 Mon Sep 17 00:00:00 2001 From: kqlio67 Date: Mon, 21 Oct 2024 10:32:32 +0300 Subject: 1 --- main.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 main.py (limited to 'main.py') 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) -- cgit v1.2.3