diff --git a/gpt4free/you/README.md b/gpt4free/you/README.md index 11b4723..e1917c6 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}) ```