diff options
Diffstat (limited to 'gpt4free/theb/__init__.py')
-rw-r--r-- | gpt4free/theb/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gpt4free/theb/__init__.py b/gpt4free/theb/__init__.py index 75a15068..c696387e 100644 --- a/gpt4free/theb/__init__.py +++ b/gpt4free/theb/__init__.py @@ -19,7 +19,7 @@ class Completion: stream_completed = False @staticmethod - def request(prompt: str, proxy: Optional[str]=None): + def request(prompt: str, proxy: Optional[str] = None): headers = { 'authority': 'chatbot.theb.ai', 'content-type': 'application/json', @@ -40,7 +40,7 @@ class Completion: Completion.stream_completed = True @staticmethod - def create(prompt: str, proxy: Optional[str]=None) -> Generator[str, None, None]: + def create(prompt: str, proxy: Optional[str] = None) -> Generator[str, None, None]: Thread(target=Completion.request, args=[prompt, proxy]).start() while not Completion.stream_completed or not Completion.message_queue.empty(): |