backend icon indicating copy to clipboard operation
backend copied to clipboard

Limit LLM individual message payload size

Open RichDom2185 opened this issue 1 year ago • 0 comments

While the context size is limited to 20 messages in #1144, individual messages still can be arbitrarily long.

The controller should check for message length and limit to e.g. 1000 characters maximum, return a 422 Unprocessable Entity status code otherwise.

RichDom2185 avatar Aug 12 '24 01:08 RichDom2185