summaryrefslogtreecommitdiffstats
path: root/testing/you_test.py
diff options
context:
space:
mode:
authort.me/xtekky <98614666+xtekky@users.noreply.github.com>2023-04-29 13:07:38 +0200
committerGitHub <noreply@github.com>2023-04-29 13:07:38 +0200
commite4aac28186318ddfe49878cacd8676bc7c62f87d (patch)
tree4a4f9315dfea90c6431e15a0db6f2af0d7832592 /testing/you_test.py
parentUpdate README.md (diff)
parentrefactored code (diff)
downloadgpt4free-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.py6
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})