summaryrefslogtreecommitdiffstats
path: root/testing/sqlchat_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'testing/sqlchat_test.py')
-rw-r--r--testing/sqlchat_test.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/testing/sqlchat_test.py b/testing/sqlchat_test.py
new file mode 100644
index 00000000..577d85a6
--- /dev/null
+++ b/testing/sqlchat_test.py
@@ -0,0 +1,6 @@
+import sqlchat
+
+for response in sqlchat.StreamCompletion.create(
+ prompt='write python code to reverse a string',
+ messages=[]):
+ print(response.completion.choices[0].text, end='')