summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authort.me/xtekky <98614666+xtekky@users.noreply.github.com>2023-04-30 13:19:29 +0200
committerGitHub <noreply@github.com>2023-04-30 13:19:29 +0200
commit22b9b1fc6954c6cf86a157dcad218c934f9e55ad (patch)
treeade8d94eaebc4b2e5d6efde8b7c0b689d4ba2c8d
parentMerge pull request #287 from valerii-chirkov/main (diff)
parentfix you README (diff)
downloadgpt4free-22b9b1fc6954c6cf86a157dcad218c934f9e55ad.tar
gpt4free-22b9b1fc6954c6cf86a157dcad218c934f9e55ad.tar.gz
gpt4free-22b9b1fc6954c6cf86a157dcad218c934f9e55ad.tar.bz2
gpt4free-22b9b1fc6954c6cf86a157dcad218c934f9e55ad.tar.lz
gpt4free-22b9b1fc6954c6cf86a157dcad218c934f9e55ad.tar.xz
gpt4free-22b9b1fc6954c6cf86a157dcad218c934f9e55ad.tar.zst
gpt4free-22b9b1fc6954c6cf86a157dcad218c934f9e55ad.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})
```