summaryrefslogtreecommitdiffstats
path: root/testing/you_test.py
diff options
context:
space:
mode:
authort.me/xtekky <98614666+xtekky@users.noreply.github.com>2023-04-30 00:48:54 +0200
committert.me/xtekky <98614666+xtekky@users.noreply.github.com>2023-04-30 00:48:54 +0200
commit9489dda310af9d91a75390ae4c9388a25b45534a (patch)
treecd3c53b7fb27cb7b55f94fa5a6dfe3c0cf06dbd5 /testing/you_test.py
parent_ (diff)
parentMerge pull request #282 from DanielShemesh/patch-5 (diff)
downloadgpt4free-9489dda310af9d91a75390ae4c9388a25b45534a.tar
gpt4free-9489dda310af9d91a75390ae4c9388a25b45534a.tar.gz
gpt4free-9489dda310af9d91a75390ae4c9388a25b45534a.tar.bz2
gpt4free-9489dda310af9d91a75390ae4c9388a25b45534a.tar.lz
gpt4free-9489dda310af9d91a75390ae4c9388a25b45534a.tar.xz
gpt4free-9489dda310af9d91a75390ae4c9388a25b45534a.tar.zst
gpt4free-9489dda310af9d91a75390ae4c9388a25b45534a.zip
Diffstat (limited to '')
-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})