Merge pull request #408 from ZachKLYeh/main

Solve 'Operation timeout after 30000 milliseconds' error
This commit is contained in:
t.me/xtekky 2023-05-03 21:38:37 +01:00 committed by GitHub
commit 1b32d4f898
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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