diff options
Diffstat (limited to 'g4f/.v1/testing/poe_test.py')
-rw-r--r-- | g4f/.v1/testing/poe_test.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/g4f/.v1/testing/poe_test.py b/g4f/.v1/testing/poe_test.py new file mode 100644 index 00000000..6edc030c --- /dev/null +++ b/g4f/.v1/testing/poe_test.py @@ -0,0 +1,13 @@ +from time import sleep + +from gpt4free import quora + +token = quora.Account.create(proxy=None, logging=True) +print('token', token) + +sleep(2) + +for response in quora.StreamingCompletion.create(model='ChatGPT', prompt='hello world', token=token): + print(response.text, flush=True) + +quora.Account.delete(token) |