defenseunicorns / leapfrogai

Production-ready Generative AI for local, cloud native, airgap, and edge deployments.

Home Page:https://leapfrog.ai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

chore(ui): limit chat message input length

andrewrisse opened this issue · comments

User Story

As a LFAI user
I want feedback when I reach the character limit for a prompt message & I want to be able to configure this limit during deploy time (until the API returns more config information about the models it is hosting).
So that I know when I have reached the limit

Acceptance Criteria

Given I am inputting a prompt message into it's input field
When I reach the character limit (Message Limit default: 10,000 characters)
Then an error message appears on the Input Field stating "Character limit reached"

Additional context

Design links:

  • Prompt Message Expanded Error link