Skip to content

Error handling for too-large-requests #1042

Open
@mrsimpson

Description

@mrsimpson

Motivation

A lot of frustration, particularly when using local LLMs with bolt.diy is that the requests become too large for the LLM to handle. The LLM then forgets the instructions from the system prompt (e. g. how it should format artifacts). Consequently, the workbench cannot properly react on the response, which majorly results in files not being created, but also mor subtly issues like semantically bad responses.

Scope

Make it transparent to the user that the LLM could not properly respond to a request
if this is the case, do not execute any actions (as this is likely rubbish)
Ideally, we could provide guidance for the user what he could do

Options

  • Inject a "protocol guard" into the very beginning of the system prompt (e. g. wrap your complete reply with <boltComplete>)
  • Utilize the models metadata

Related

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    epic:llmModel interaction

    Type

    No type

    Projects

    • Status

      In review

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

      Participants

      @mrsimpson

      Issue actions

        Error handling for too-large-requests · Issue #1042 · stackblitz-labs/bolt.diy