gpt4free/testing/sqlchat_test.py
2023-04-28 00:40:43 +05:30

5 lines
181 B
Python

import sqlchat
for response in sqlchat.StreamCompletion.create(prompt='write python code to reverse a string', messages=[]):
print(response.completion.choices[0].text, end='')