summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authort.me/xtekky <98614666+xtekky@users.noreply.github.com>2023-04-27 11:34:05 +0200
committert.me/xtekky <98614666+xtekky@users.noreply.github.com>2023-04-27 11:34:05 +0200
commit98d2b4109e8cd06ffd46ce9fe747bf889a4e7fff (patch)
tree2ad018b50660a2e6ec397a71f07c6c937071fc62 /testing
parentUpdate main.py (diff)
downloadgpt4free-98d2b4109e8cd06ffd46ce9fe747bf889a4e7fff.tar
gpt4free-98d2b4109e8cd06ffd46ce9fe747bf889a4e7fff.tar.gz
gpt4free-98d2b4109e8cd06ffd46ce9fe747bf889a4e7fff.tar.bz2
gpt4free-98d2b4109e8cd06ffd46ce9fe747bf889a4e7fff.tar.lz
gpt4free-98d2b4109e8cd06ffd46ce9fe747bf889a4e7fff.tar.xz
gpt4free-98d2b4109e8cd06ffd46ce9fe747bf889a4e7fff.tar.zst
gpt4free-98d2b4109e8cd06ffd46ce9fe747bf889a4e7fff.zip
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