fix(gateway): cap chat.history to 1000 messages

This commit is contained in:
Peter Steinberger
2025-12-16 19:44:49 +01:00
parent 2a5f0d6063
commit d691e28675
3 changed files with 49 additions and 4 deletions

View File

@@ -458,7 +458,7 @@ export const CronRunLogEntrySchema = Type.Object(
export const ChatHistoryParamsSchema = Type.Object(
{
sessionKey: NonEmptyString,
limit: Type.Optional(Type.Integer({ minimum: 1, maximum: 500 })),
limit: Type.Optional(Type.Integer({ minimum: 1 })),
},
{ additionalProperties: false },
);