From 68583f46cd8f7b8f60c69fbf178be5e6ab9e6569 Mon Sep 17 00:00:00 2001 From: ZachKLYeh <105150034+ZachKLYeh@users.noreply.github.com> Date: Wed, 3 May 2023 20:55:26 +0800 Subject: [PATCH] Update __init__.py add timeout argument to solve long response message timeout issue --- gpt4free/theb/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gpt4free/theb/__init__.py b/gpt4free/theb/__init__.py index e3a7f78..b162811 100644 --- a/gpt4free/theb/__init__.py +++ b/gpt4free/theb/__init__.py @@ -40,6 +40,7 @@ class Completion: proxies=proxies, content_callback=Completion.handle_stream_response, json={'prompt': prompt, 'options': options}, + timeout=100000 ) Completion.stream_completed = True