summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--testing/forefront_test.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/testing/forefront_test.py b/testing/forefront_test.py
new file mode 100644
index 00000000..b5c682b8
--- /dev/null
+++ b/testing/forefront_test.py
@@ -0,0 +1,11 @@
+import forefront
+
+# create an account
+token = forefront.Account.create(logging=True)
+print(token)
+
+# get a response
+for response in forefront.StreamingCompletion.create(token = token,
+ prompt = 'hello world', model='gpt-4'):
+
+ print(response.completion.choices[0].text, end = '') \ No newline at end of file