mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-29 11:42:17 +00:00
docs(ai): describe quota codes provider-neutrally
This commit is contained in:
parent
25d0154d6d
commit
0ea9a00a3f
1 changed files with 1 additions and 2 deletions
|
|
@ -59,8 +59,7 @@ export const isContextOverflowFailure = (failure: unknown) =>
|
|||
: Schema.is(ProviderErrorEvent)(failure) && failure.classification === "context-overflow"
|
||||
|
||||
const decodeJson = Schema.decodeUnknownOption(Schema.fromJsonString(Schema.Unknown))
|
||||
// OpenCode Zen reports account caps as typed 429/402 errors that are not throttles, and
|
||||
// OpenAI reports hard spend limits as 429s with a spend-limit code.
|
||||
// Account caps that providers and gateways report as typed 429/402 errors, not throttles.
|
||||
const QUOTA_CODES = new Set([
|
||||
"insufficient_quota",
|
||||
"usage_not_included",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue