diff options
author | Andrew Tsegaye <91322467+Andrew-Tsegaye@users.noreply.github.com> | 2023-04-26 23:23:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-26 23:23:24 +0200 |
commit | a6e2d65a1591266b9f6f68d2fb897489cf8c5272 (patch) | |
tree | 738dc4a01e918ec959e71df0be45adcccd3c19a1 /testing | |
parent | new changes (diff) | |
parent | https://discord.gg/gpt4free (diff) | |
download | gpt4free-a6e2d65a1591266b9f6f68d2fb897489cf8c5272.tar gpt4free-a6e2d65a1591266b9f6f68d2fb897489cf8c5272.tar.gz gpt4free-a6e2d65a1591266b9f6f68d2fb897489cf8c5272.tar.bz2 gpt4free-a6e2d65a1591266b9f6f68d2fb897489cf8c5272.tar.lz gpt4free-a6e2d65a1591266b9f6f68d2fb897489cf8c5272.tar.xz gpt4free-a6e2d65a1591266b9f6f68d2fb897489cf8c5272.tar.zst gpt4free-a6e2d65a1591266b9f6f68d2fb897489cf8c5272.zip |
Diffstat (limited to 'testing')
-rw-r--r-- | testing/you_test.py | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/testing/you_test.py b/testing/you_test.py index 9c69cf34..6ba12f57 100644 --- a/testing/you_test.py +++ b/testing/you_test.py @@ -1,10 +1,7 @@ import you # simple request with links and details -response = you.Completion.create( - prompt = "hello world", - detailed = True, - includelinks = True) +response = you.Completion.create(prompt="hello world", detailed=True, include_links=True) print(response) @@ -16,17 +13,15 @@ print(response) # } # } -#chatbot +# chatbot chat = [] while True: prompt = input("You: ") - - response = you.Completion.create( - prompt = prompt, - chat = chat) - + + response = you.Completion.create(prompt=prompt, chat=chat) + print("Bot:", response["response"]) - - chat.append({"question": prompt, "answer": response["response"]})
\ No newline at end of file + + chat.append({"question": prompt, "answer": response["response"]}) |