- New
Tl2()function parses context limit errors to extract token information - Automatically detects when input length + max_tokens exceed the context limit
- Extracts and returns structured data:
{ inputTokens, maxTokens, contextLimit } - Helps users understand token usage and adjust their requests accordingly
Better Error Handling for Context Limits
EntryKind: in v0.2.55,
ChangesSection of the release