diff options
author | Raju Komati <komatiraju032@gmail.com> | 2023-04-29 11:25:24 +0200 |
---|---|---|
committer | Raju Komati <komatiraju032@gmail.com> | 2023-04-29 11:25:24 +0200 |
commit | 54b4c789a75fec5c3a92a03dfd2d93d051309651 (patch) | |
tree | 813a7dd223e9f7df3b1708fc65a58ccc87684ba6 /testing/you_test.py | |
parent | Update README.md (diff) | |
download | gpt4free-54b4c789a75fec5c3a92a03dfd2d93d051309651.tar gpt4free-54b4c789a75fec5c3a92a03dfd2d93d051309651.tar.gz gpt4free-54b4c789a75fec5c3a92a03dfd2d93d051309651.tar.bz2 gpt4free-54b4c789a75fec5c3a92a03dfd2d93d051309651.tar.lz gpt4free-54b4c789a75fec5c3a92a03dfd2d93d051309651.tar.xz gpt4free-54b4c789a75fec5c3a92a03dfd2d93d051309651.tar.zst gpt4free-54b4c789a75fec5c3a92a03dfd2d93d051309651.zip |
Diffstat (limited to '')
-rw-r--r-- | testing/you_test.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/testing/you_test.py b/testing/you_test.py index 34800301..1e9f6205 100644 --- a/testing/you_test.py +++ b/testing/you_test.py @@ -1,4 +1,4 @@ -from openai_rev import you +from gpt4free import you # simple request with links and details response = you.Completion.create(prompt="hello world", detailed=True, include_links=True) @@ -22,6 +22,6 @@ while True: response = you.Completion.create(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}) |