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 --- gui/query_methods.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gui/query_methods.py') diff --git a/gui/query_methods.py b/gui/query_methods.py index 1a4a3402..adb4ae91 100644 --- a/gui/query_methods.py +++ b/gui/query_methods.py @@ -3,7 +3,7 @@ import sys sys.path.append(os.path.join(os.path.dirname(__file__), os.path.pardir)) -import forefront, quora, theb, you +from gpt4free import quora, forefront, theb, you import random @@ -15,7 +15,7 @@ def query_forefront(question: str) -> str: response = "" # get a response try: - for i in forefront.StreamingCompletion.create(token = token, prompt = 'hello world', model='gpt-4'): + for i in forefront.StreamingCompletion.create(token = token, prompt ='hello world', model='gpt-4'): response += i.completion.choices[0].text return response -- cgit v1.2.3