-
-
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.
- Loading branch information
1 parent
ada6b3b
commit fcd8492
Showing
1 changed file
with
48 additions
and
17 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