Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
add timeout argument to solve long response message timeout issue
  • Loading branch information
ZachKLYeh authored May 3, 2023
1 parent 53b6cf4 commit 68583f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gpt4free/theb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def request(prompt: str, proxy: Optional[str] = None):
proxies=proxies,
content_callback=Completion.handle_stream_response,
json={'prompt': prompt, 'options': options},
timeout=100000
)

Completion.stream_completed = True
Expand Down

0 comments on commit 68583f4

Please sign in to comment.