freegpt-webui / g4f /.v1 /testing /sqlchat_test.py
monra's picture
Adds all providers from the original API
d4adf88
raw
history blame
181 Bytes
import sqlchat
for response in sqlchat.StreamCompletion.create(prompt='write python code to reverse a string', messages=[]):
print(response.completion.choices[0].text, end='')