Update __init__.py

add timeout argument to solve long response message timeout issue
This commit is contained in:
ZachKLYeh 2023-05-03 20:55:26 +08:00 committed by GitHub
parent 53b6cf45c6
commit 68583f46cd
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