summaryrefslogtreecommitdiffstats
path: root/testing/forefront_test.py
diff options
context:
space:
mode:
authort.me/xtekky <98614666+xtekky@users.noreply.github.com>2023-04-27 14:29:33 +0200
committerGitHub <noreply@github.com>2023-04-27 14:29:33 +0200
commitd8ec09cebbe04268200cb2f53289525cb95d00bb (patch)
tree997609545bc922d63081a49ee356b747b4ecce68 /testing/forefront_test.py
parentMerge branch 'main' of https://github.com/Andrew-Tsegaye/gpt4free (diff)
parentMerge pull request #197 from AymaneHrouch/update_syspath (diff)
downloadgpt4free-d8ec09cebbe04268200cb2f53289525cb95d00bb.tar
gpt4free-d8ec09cebbe04268200cb2f53289525cb95d00bb.tar.gz
gpt4free-d8ec09cebbe04268200cb2f53289525cb95d00bb.tar.bz2
gpt4free-d8ec09cebbe04268200cb2f53289525cb95d00bb.tar.lz
gpt4free-d8ec09cebbe04268200cb2f53289525cb95d00bb.tar.xz
gpt4free-d8ec09cebbe04268200cb2f53289525cb95d00bb.tar.zst
gpt4free-d8ec09cebbe04268200cb2f53289525cb95d00bb.zip
Diffstat (limited to 'testing/forefront_test.py')
-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