diff --git a/advanced/dapps/chat-demo-agent/src/app/api/send-message/request-validation.ts b/advanced/dapps/chat-demo-agent/src/app/api/send-message/request-validation.ts index 9478387cf..460b5eddb 100644 --- a/advanced/dapps/chat-demo-agent/src/app/api/send-message/request-validation.ts +++ b/advanced/dapps/chat-demo-agent/src/app/api/send-message/request-validation.ts @@ -10,7 +10,7 @@ const MAX_MESSAGE_LENGTH = 300; /** * Maximum allowed number of messages in history to prevent memory issues */ -const MAX_HISTORY_LENGTH = 6; +const MAX_HISTORY_LENGTH = 20; /** * Type guard to validate the structure and content of message history