From 8847f0a4fdb6e20887eb68f0b4c53a9321c34c2f Mon Sep 17 00:00:00 2001 From: KHELIFI Ahmed Aziz Date: Sat, 29 Apr 2023 15:51:16 +0100 Subject: [PATCH] fix you README --- gpt4free/you/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gpt4free/you/README.md b/gpt4free/you/README.md index 11b4723e..e1917c6d 100644 --- a/gpt4free/you/README.md +++ b/gpt4free/you/README.md @@ -10,7 +10,7 @@ response = you.Completion.create( detailed=True, include_links=True, ) -print(response) +print(response.dict()) # { # "response": "...", @@ -32,7 +32,7 @@ while True: 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}) ```