diff options
Diffstat (limited to 'testing')
-rw-r--r-- | testing/poe_test.py | 2 | ||||
-rw-r--r-- | testing/t3nsor_test.py | 7 |
2 files changed, 8 insertions, 1 deletions
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) |