From 98d2b4109e8cd06ffd46ce9fe747bf889a4e7fff Mon Sep 17 00:00:00 2001 From: "t.me/xtekky" <98614666+xtekky@users.noreply.github.com> Date: Thu, 27 Apr 2023 10:34:05 +0100 Subject: forefront (gpt-4) --- testing/forefront_test.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 testing/forefront_test.py (limited to 'testing/forefront_test.py') 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 -- cgit v1.2.3