From 8c0f5e9634ac6314a8b7a73dddffed08ccacd4cf Mon Sep 17 00:00:00 2001 From: "t.me/xtekky" <98614666+xtekky@users.noreply.github.com> Date: Sat, 15 Apr 2023 15:42:07 +0100 Subject: updated quora(poe) (token creation patched atm) --- testing/poe_test.py | 2 +- testing/t3nsor_test.py | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 testing/t3nsor_test.py (limited to 'testing') diff --git a/testing/poe_test.py b/testing/poe_test.py index 6e91fb01..122f19c7 100644 --- a/testing/poe_test.py +++ b/testing/poe_test.py @@ -6,7 +6,7 @@ print('token', token) sleep(2) -for response in quora.StreamingCompletion.create(model = 'gpt-4', +for response in quora.StreamingCompletion.create(model = 'gpt-3.5-turbo', prompt = 'hello world', token = token): diff --git a/testing/t3nsor_test.py b/testing/t3nsor_test.py new file mode 100644 index 00000000..eb8e2ae8 --- /dev/null +++ b/testing/t3nsor_test.py @@ -0,0 +1,7 @@ +import t3nsor + +for response in t3nsor.StreamCompletion.create( + prompt = 'write python code to reverse a string', + messages = []): + + print(response.completion.choices[0].text) -- cgit v1.2.3