{"version":"0.2.55","anchor":"better-error-handling-for-context-limits","canonical_anchor":"better-error-handling-for-context-limits","heading":"Better Error Handling for Context Limits","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/0.2.55\/e\/better-error-handling-for-context-limits","release_url":"https:\/\/changelogs.core-directive.com\/v\/0.2.55","markdown":"### Better Error Handling for Context Limits\n\n- **New `Tl2()` function** parses context limit errors to extract token information\n- Automatically detects when input length + max_tokens exceed the context limit\n- Extracts and returns structured data: `{ inputTokens, maxTokens, contextLimit }`\n- Helps users understand token usage and adjust their requests accordingly"}