cli: update usage exceeded error
parent
ebaa99aba2
commit
811c7e2494
|
|
@ -54,7 +54,7 @@ export namespace SessionRetry {
|
|||
if (MessageV2.APIError.isInstance(error)) {
|
||||
if (!error.data.isRetryable) return undefined
|
||||
if (error.data.responseBody?.includes("FreeUsageLimitError"))
|
||||
return `Free usage exceeded, add credits https://opencode.ai/zen`
|
||||
return `Free usage exceeded, subscribe to Go https://opencode.ai/go`
|
||||
return error.data.message.includes("Overloaded") ? "Provider is overloaded" : error.data.message
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue