diff options
author | t.me/xtekky <98614666+xtekky@users.noreply.github.com> | 2023-04-29 13:07:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-29 13:07:38 +0200 |
commit | e4aac28186318ddfe49878cacd8676bc7c62f87d (patch) | |
tree | 4a4f9315dfea90c6431e15a0db6f2af0d7832592 /testing/you_test.py | |
parent | Update README.md (diff) | |
parent | refactored code (diff) | |
download | gpt4free-e4aac28186318ddfe49878cacd8676bc7c62f87d.tar gpt4free-e4aac28186318ddfe49878cacd8676bc7c62f87d.tar.gz gpt4free-e4aac28186318ddfe49878cacd8676bc7c62f87d.tar.bz2 gpt4free-e4aac28186318ddfe49878cacd8676bc7c62f87d.tar.lz gpt4free-e4aac28186318ddfe49878cacd8676bc7c62f87d.tar.xz gpt4free-e4aac28186318ddfe49878cacd8676bc7c62f87d.tar.zst gpt4free-e4aac28186318ddfe49878cacd8676bc7c62f87d.zip |
Diffstat (limited to 'testing/you_test.py')
-rw-r--r-- | testing/you_test.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/testing/you_test.py b/testing/you_test.py index 34800301..1e9f6205 100644 --- a/testing/you_test.py +++ b/testing/you_test.py @@ -1,4 +1,4 @@ -from openai_rev import you +from gpt4free import you # simple request with links and details response = you.Completion.create(prompt="hello world", detailed=True, include_links=True) @@ -22,6 +22,6 @@ while True: response = you.Completion.create(prompt=prompt, chat=chat) - print("Bot:", response["response"]) + print("Bot:", response.text) - chat.append({"question": prompt, "answer": response["response"]}) + chat.append({"question": prompt, "answer": response.text}) |