summaryrefslogtreecommitdiffstats
path: root/testing/you_test.py
diff options
context:
space:
mode:
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})