Skip to content

[LMI] Context window exceptions not normalized #453

Description

@whitead

OpenAI/LiteLLM embedding calls may report oversized inputs as BadRequestError with "maximum input length" instead of ContextWindowExceededError. Normalize these so downstream chunking fallback logic can handle it consistently (namely in paperqa).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions