diff options
author | t.me/xtekky <98614666+xtekky@users.noreply.github.com> | 2023-04-30 13:42:21 +0200 |
---|---|---|
committer | t.me/xtekky <98614666+xtekky@users.noreply.github.com> | 2023-04-30 13:42:21 +0200 |
commit | e02094de5baac85613855c8a6c9ae1298324ad0e (patch) | |
tree | f3a8930ffc312c31916b7beeffac3ccc090f929c /testing/useless_test.py | |
parent | Update README.md (diff) | |
download | gpt4free-e02094de5baac85613855c8a6c9ae1298324ad0e.tar gpt4free-e02094de5baac85613855c8a6c9ae1298324ad0e.tar.gz gpt4free-e02094de5baac85613855c8a6c9ae1298324ad0e.tar.bz2 gpt4free-e02094de5baac85613855c8a6c9ae1298324ad0e.tar.lz gpt4free-e02094de5baac85613855c8a6c9ae1298324ad0e.tar.xz gpt4free-e02094de5baac85613855c8a6c9ae1298324ad0e.tar.zst gpt4free-e02094de5baac85613855c8a6c9ae1298324ad0e.zip |
Diffstat (limited to 'testing/useless_test.py')
-rw-r--r-- | testing/useless_test.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/testing/useless_test.py b/testing/useless_test.py new file mode 100644 index 00000000..9b613aac --- /dev/null +++ b/testing/useless_test.py @@ -0,0 +1,27 @@ +from gpt4free import usesless + +message_id = "" +while True: + prompt = input("Question: ") + if prompt == "!stop": + break + + req = usesless.Completion.create(prompt=prompt, parentMessageId=message_id) + + print(f"Answer: {req['text']}") + message_id = req["id"] + + +import gpt4free + +message_id = "" +while True: + prompt = input("Question: ") + if prompt == "!stop": + break + + 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 |