Skip to content

Commit

Permalink
Merge pull request xtekky#408 from ZachKLYeh/main
Browse files Browse the repository at this point in the history
Solve 'Operation timeout after 30000 milliseconds' error
  • Loading branch information
xtekky authored May 3, 2023
2 parents 53b6cf4 + 68583f4 commit 1b32d4f
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 1b32d4f

Please sign in to comment.