File size: 268 Bytes
51a95a3 22eeeb1 fd5b958 8d1c8cf fa21e2d 2cf06ef fa21e2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import os
import g4f
prompt = 'give em story about Libya in arabic lang'
response = g4f.ChatCompletion.create(
model="gpt-4",
messages=[{"role": "user", "content": prompt}],
stream=True,
)
for message in response:
print(message, flush=True, end='') |