blob: 4631ac11acc263bfd75d8c50e55061d155b4a7e7 (
plain) (
blame)
1
2
3
4
5
6
7
8
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)
|