summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHELIFI Ahmed Aziz <ahmedazizkhelifi@gmail.com>2023-04-29 16:51:16 +0200
committerKHELIFI Ahmed Aziz <ahmedazizkhelifi@gmail.com>2023-04-29 16:51:16 +0200
commit8847f0a4fdb6e20887eb68f0b4c53a9321c34c2f (patch)
tree22e24b1df05ed80d410d6fe837619b487272f78e
parentUpdate README.md (diff)
downloadgpt4free-8847f0a4fdb6e20887eb68f0b4c53a9321c34c2f.tar
gpt4free-8847f0a4fdb6e20887eb68f0b4c53a9321c34c2f.tar.gz
gpt4free-8847f0a4fdb6e20887eb68f0b4c53a9321c34c2f.tar.bz2
gpt4free-8847f0a4fdb6e20887eb68f0b4c53a9321c34c2f.tar.lz
gpt4free-8847f0a4fdb6e20887eb68f0b4c53a9321c34c2f.tar.xz
gpt4free-8847f0a4fdb6e20887eb68f0b4c53a9321c34c2f.tar.zst
gpt4free-8847f0a4fdb6e20887eb68f0b4c53a9321c34c2f.zip
-rw-r--r--gpt4free/you/README.md6
1 files 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})
```