pull/18683/merge
Brendan DeBeasi 2026-04-08 05:25:09 +00:00 committed by GitHub
commit 48b15f8e40
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -8,6 +8,7 @@ export namespace ProviderError {
// https://github.com/badlogic/pi-mono/blob/main/packages/ai/src/utils/overflow.ts
const OVERFLOW_PATTERNS = [
/prompt is too long/i, // Anthropic
/extra usage is required for long context/i, // Anthropic (billing tier context limit)
/input is too long for requested model/i, // Amazon Bedrock
/exceeds the context window/i, // OpenAI (Completions + Responses API message text)
/input token count.*exceeds the maximum/i, // Google (Gemini)