Skip to content

Question: How to handle too large pages? #5

@Sebobo

Description

@Sebobo

We get the following a status error alert on some pages, with the quest response returning:

{
    "status": false,
    "error": "This model's maximum context length is 16385 tokens. However, your messages resulted in 68396 tokens. Please reduce the length of the messages."
}

First, the error should also be shown as flash message, and not just an alert without a message, see #2.

Second: How can this be resolved from an integrators perspective?

We probably could strip a few more parts of a page from the rendered markup before markdown conversion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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