From ef3595cee2997660905c1408264e61bda69e14d3 Mon Sep 17 00:00:00 2001 From: heimoshuiyu Date: Thu, 25 Jan 2024 15:08:08 +0800 Subject: [PATCH] fix: max param on newChatStore() --- src/app.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.tsx b/src/app.tsx index 4b13109..e991d5d 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -297,7 +297,7 @@ export function App() { const sys = getDefaultParams("sys", ""); const mode = getDefaultParams("mode", ""); const model = getDefaultParams("model", ""); - const max = getDefaultParams("max", chatStore.maxTokens || 2048); + const max = getDefaultParams("max", 0); // only create new chatStore if the params in URL are NOT // equal to the current selected chatStore if (