diff options
author | Andrew Tsegaye <andrewtsegaye7@gmail.com> | 2023-04-27 18:19:09 +0200 |
---|---|---|
committer | Andrew Tsegaye <andrewtsegaye7@gmail.com> | 2023-04-27 18:19:09 +0200 |
commit | d2d81b7648cb7198a5127ebc2ea369b18c0c49e5 (patch) | |
tree | 21b49e5221dd963d7538ebbb2c5db71d4efb5099 /you/README.md | |
parent | well updated (diff) | |
parent | Merge pull request #1 from xtekky/main (diff) | |
download | gpt4free-d2d81b7648cb7198a5127ebc2ea369b18c0c49e5.tar gpt4free-d2d81b7648cb7198a5127ebc2ea369b18c0c49e5.tar.gz gpt4free-d2d81b7648cb7198a5127ebc2ea369b18c0c49e5.tar.bz2 gpt4free-d2d81b7648cb7198a5127ebc2ea369b18c0c49e5.tar.lz gpt4free-d2d81b7648cb7198a5127ebc2ea369b18c0c49e5.tar.xz gpt4free-d2d81b7648cb7198a5127ebc2ea369b18c0c49e5.tar.zst gpt4free-d2d81b7648cb7198a5127ebc2ea369b18c0c49e5.zip |
Diffstat (limited to 'you/README.md')
-rw-r--r-- | you/README.md | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/you/README.md b/you/README.md index 69da131a..dbce37a5 100644 --- a/you/README.md +++ b/you/README.md @@ -5,9 +5,9 @@ import you # simple request with links and details response = you.Completion.create( - prompt = "hello world", - detailed = True, - includelinks = True,) + prompt="hello world", + detailed=True, + include_links=True, ) print(response) @@ -19,18 +19,18 @@ print(response) # } # } -#chatbot +# chatbot chat = [] while True: prompt = input("You: ") - + response = you.Completion.create( - prompt = prompt, - chat = chat) - + prompt=prompt, + chat=chat) + print("Bot:", response["response"]) - + chat.append({"question": prompt, "answer": response["response"]}) ```
\ No newline at end of file |