mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
better overloaded message
This commit is contained in:
parent
125938c7a1
commit
eb04cdac41
1 changed files with 1 additions and 1 deletions
|
|
@ -339,7 +339,7 @@ export namespace SessionProcessor {
|
|||
SessionStatus.set(input.sessionID, {
|
||||
type: "retry",
|
||||
attempt,
|
||||
message: error.data.message,
|
||||
message: error.data.message.includes("Overloaded") ? "Provider is overloaded" : error.data.message,
|
||||
next: Date.now() + delay,
|
||||
})
|
||||
await SessionRetry.sleep(delay, input.abort).catch(() => {})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue