From 92d35a53369755c9193b61a53f62d1fd16948298 Mon Sep 17 00:00:00 2001 From: Karandeep Singh Date: Thu, 23 Jan 2025 21:00:35 +0530 Subject: [PATCH] chore: increase message history length --- .../src/app/api/send-message/request-validation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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