mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-09-17 18:39:28 -04:00
Update __init__.py
add timeout argument to solve long response message timeout issue
This commit is contained in:
parent
53b6cf45c6
commit
68583f46cd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user