diff options
author | t.me/xtekky <98614666+xtekky@users.noreply.github.com> | 2023-05-01 19:25:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-01 19:25:20 +0200 |
commit | 9c0b440b6cfe80fd29f295a6441f691f433ab600 (patch) | |
tree | 8ea4c862ec8f162cf689e36ce0945ba1ddc1dfff /testing | |
parent | Merge pull request #337 from CCXXXI/docs/readme (diff) | |
parent | Merge branch 'main' into feature/delete_poe_account (diff) | |
download | gpt4free-9c0b440b6cfe80fd29f295a6441f691f433ab600.tar gpt4free-9c0b440b6cfe80fd29f295a6441f691f433ab600.tar.gz gpt4free-9c0b440b6cfe80fd29f295a6441f691f433ab600.tar.bz2 gpt4free-9c0b440b6cfe80fd29f295a6441f691f433ab600.tar.lz gpt4free-9c0b440b6cfe80fd29f295a6441f691f433ab600.tar.xz gpt4free-9c0b440b6cfe80fd29f295a6441f691f433ab600.tar.zst gpt4free-9c0b440b6cfe80fd29f295a6441f691f433ab600.zip |
Diffstat (limited to 'testing')
-rw-r--r-- | testing/poe_test.py | 4 | ||||
-rw-r--r-- | testing/theb_test.py | 2 | ||||
-rw-r--r-- | testing/useless_test.py | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/testing/poe_test.py b/testing/poe_test.py index 22d95f5f..6edc030c 100644 --- a/testing/poe_test.py +++ b/testing/poe_test.py @@ -1,6 +1,6 @@ from time import sleep -from gpt4free import quora +from gpt4free import quora token = quora.Account.create(proxy=None, logging=True) print('token', token) @@ -9,3 +9,5 @@ sleep(2) for response in quora.StreamingCompletion.create(model='ChatGPT', prompt='hello world', token=token): print(response.text, flush=True) + +quora.Account.delete(token) diff --git a/testing/theb_test.py b/testing/theb_test.py index 0fd2ec8b..5fa80908 100644 --- a/testing/theb_test.py +++ b/testing/theb_test.py @@ -2,4 +2,4 @@ from gpt4free import theb for token in theb.Completion.create('hello world'): print(token, end='', flush=True) - print('asdsos')
\ No newline at end of file + print('asdsos') diff --git a/testing/useless_test.py b/testing/useless_test.py index 9b613aac..47c92386 100644 --- a/testing/useless_test.py +++ b/testing/useless_test.py @@ -11,7 +11,6 @@ while True: print(f"Answer: {req['text']}") message_id = req["id"] - import gpt4free message_id = "" @@ -20,8 +19,7 @@ while True: if prompt == "!stop": break - req = gpt4free.Completion.create(provider = gpt4free.Provider.UseLess, - prompt=prompt, parentMessageId=message_id) + req = gpt4free.Completion.create(provider=gpt4free.Provider.UseLess, prompt=prompt, parentMessageId=message_id) print(f"Answer: {req['text']}") - message_id = req["id"]
\ No newline at end of file + message_id = req["id"] |