diff options
author | t.me/xtekky <98614666+xtekky@users.noreply.github.com> | 2023-04-11 18:44:29 +0200 |
---|---|---|
committer | t.me/xtekky <98614666+xtekky@users.noreply.github.com> | 2023-04-11 18:44:29 +0200 |
commit | 081dfff8b49d5487858611524babcecb8e473bd5 (patch) | |
tree | 97c5163b53a998d865bd2e82631eb487f1f1e9d6 /testing/quora_test_2.py | |
parent | t3nsor api is down (diff) | |
download | gpt4free-081dfff8b49d5487858611524babcecb8e473bd5.tar gpt4free-081dfff8b49d5487858611524babcecb8e473bd5.tar.gz gpt4free-081dfff8b49d5487858611524babcecb8e473bd5.tar.bz2 gpt4free-081dfff8b49d5487858611524babcecb8e473bd5.tar.lz gpt4free-081dfff8b49d5487858611524babcecb8e473bd5.tar.xz gpt4free-081dfff8b49d5487858611524babcecb8e473bd5.tar.zst gpt4free-081dfff8b49d5487858611524babcecb8e473bd5.zip |
Diffstat (limited to 'testing/quora_test_2.py')
-rw-r--r-- | testing/quora_test_2.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/testing/quora_test_2.py b/testing/quora_test_2.py new file mode 100644 index 00000000..c51b8478 --- /dev/null +++ b/testing/quora_test_2.py @@ -0,0 +1,18 @@ +import quora + +token = quora.Account.create(logging = True, enable_bot_creation=True) + +model = quora.Model.create( + token = token, + model = 'gpt-3.5-turbo', # or claude-instant-v1.0 + system_prompt = 'you are ChatGPT a large language model ...' +) + +print(model.name) + +for response in quora.StreamingCompletion.create( + custom_model = model.name, + prompt ='hello world', + token = token): + + print(response.completion.choices[0].text)
\ No newline at end of file |