diff options
author | Raju Komati <komatiraju032@gmail.com> | 2023-04-26 20:20:18 +0200 |
---|---|---|
committer | Raju Komati <komatiraju032@gmail.com> | 2023-04-26 20:20:18 +0200 |
commit | f43107aa764acb59dbbaad5d5ac6fb53f3990057 (patch) | |
tree | 47e4b5e94babc30430f24e3f5cbf931c3ab97ede /you/README.md | |
parent | Merge pull request #152 from 3k3n3/patch-1 (diff) | |
download | gpt4free-f43107aa764acb59dbbaad5d5ac6fb53f3990057.tar gpt4free-f43107aa764acb59dbbaad5d5ac6fb53f3990057.tar.gz gpt4free-f43107aa764acb59dbbaad5d5ac6fb53f3990057.tar.bz2 gpt4free-f43107aa764acb59dbbaad5d5ac6fb53f3990057.tar.lz gpt4free-f43107aa764acb59dbbaad5d5ac6fb53f3990057.tar.xz gpt4free-f43107aa764acb59dbbaad5d5ac6fb53f3990057.tar.zst gpt4free-f43107aa764acb59dbbaad5d5ac6fb53f3990057.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 |