mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-17 09:02:08 +00:00
fix(ai): detect context_length_exceeded overflow
This commit is contained in:
parent
b1f32b9c8d
commit
946efe4b45
2 changed files with 3 additions and 1 deletions
|
|
@ -13,6 +13,8 @@
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
- Fixed OpenAI Codex context window from 400,000 to 272,000 tokens to match Codex CLI defaults and prevent 400 errors. ([#536](https://github.com/badlogic/pi-mono/pull/536) by [@ghoulr](https://github.com/ghoulr))
|
- Fixed OpenAI Codex context window from 400,000 to 272,000 tokens to match Codex CLI defaults and prevent 400 errors. ([#536](https://github.com/badlogic/pi-mono/pull/536) by [@ghoulr](https://github.com/ghoulr))
|
||||||
|
- Fixed Codex SSE error events to surface message, code, and status. ([#551](https://github.com/badlogic/pi-mono/pull/551) by [@tmustier](https://github.com/tmustier))
|
||||||
|
- Fixed context overflow detection for `context_length_exceeded` error codes.
|
||||||
|
|
||||||
## [0.37.8] - 2026-01-07
|
## [0.37.8] - 2026-01-07
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ const OVERFLOW_PATTERNS = [
|
||||||
/exceeds the limit of \d+/i, // GitHub Copilot
|
/exceeds the limit of \d+/i, // GitHub Copilot
|
||||||
/exceeds the available context size/i, // llama.cpp server
|
/exceeds the available context size/i, // llama.cpp server
|
||||||
/greater than the context length/i, // LM Studio
|
/greater than the context length/i, // LM Studio
|
||||||
/context length exceeded/i, // Generic fallback
|
/context[_ ]length[_ ]exceeded/i, // Generic fallback
|
||||||
/too many tokens/i, // Generic fallback
|
/too many tokens/i, // Generic fallback
|
||||||
/token limit exceeded/i, // Generic fallback
|
/token limit exceeded/i, // Generic fallback
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue