diff options
author | t.me/xtekky <98614666+xtekky@users.noreply.github.com> | 2023-04-30 13:19:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-30 13:19:29 +0200 |
commit | 22b9b1fc6954c6cf86a157dcad218c934f9e55ad (patch) | |
tree | ade8d94eaebc4b2e5d6efde8b7c0b689d4ba2c8d | |
parent | Merge pull request #287 from valerii-chirkov/main (diff) | |
parent | fix you README (diff) | |
download | gpt4free-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.md | 6 |
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}) ``` |