-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We need to handle session disconnects, resuming, and changes in shard states. This fixes some of the errors we were seeing with: - Shard ID None WebSocket closed - Shard ID None heartbeat blocked for more than This also makes a new `call_openai_api` function definition and turns the response into an async call on a thread. The rate limit function was cleaned up while I was here. The Flake8 complexity was reduced to it's default of 10 and the main function was commented to avoid Flake8 complexity issues.
- Loading branch information
1 parent
ada6b3b
commit 9bca4ca
Showing
2 changed files
with
51 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters