|
|
@@ -64,6 +64,8 @@ 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 error.data.message.includes("Overloaded") ? "Provider is overloaded" : error.data.message
|
|
|
}
|
|
|
|