From 261a8fd83b375b44b30113f824af1fcb477ace00 Mon Sep 17 00:00:00 2001 From: durian Date: Thu, 23 Nov 2023 15:36:10 +0800 Subject: [PATCH] fix(CUSTOM_MODELS):#3349 Dependency chatStore otherwise the session and view will not updated --- app/components/chat.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/components/chat.tsx b/app/components/chat.tsx index 4d9de725..39abdd97 100644 --- a/app/components/chat.tsx +++ b/app/components/chat.tsx @@ -449,8 +449,7 @@ export function ChatActions(props: { ); showToast(nextModel); } - // eslint-disable-next-line react-hooks/exhaustive-deps - }, [currentModel, models]); + }, [chatStore, currentModel, models]); return (