From 54b4c789a75fec5c3a92a03dfd2d93d051309651 Mon Sep 17 00:00:00 2001 From: Raju Komati Date: Sat, 29 Apr 2023 14:55:24 +0530 Subject: added gpt4free package --- testing/you_test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'testing/you_test.py') 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}) -- cgit v1.2.3