From 15e11819c4481fa35785975a68afe22e6cc3d3d9 Mon Sep 17 00:00:00 2001 From: H0llyW00dzZ Date: Mon, 27 Nov 2023 15:33:59 +0700 Subject: [PATCH] Another Fix from head repo & Update Docs (#163) * fix(CUSTOM_MODELS):#3349 Dependency chatStore otherwise the session and view will not updated * Update README.md --------- Co-authored-by: durianice Co-authored-by: Yidadaa --- README.md | 1 + app/components/chat.tsx | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 73a2b422c5d..7c7a6f243d6 100644 --- a/README.md +++ b/README.md @@ -348,6 +348,7 @@ If you want to add a new translation, read this [document](./docs/translation.md [@wenjiavv](https://github.com/wenjiavv) [@LeXwDeX](https://github.com/LeXwDeX) [@Licoy](https://github.com/Licoy) +[@shangmin2009](https://github.com/shangmin2009) ### Contributor diff --git a/app/components/chat.tsx b/app/components/chat.tsx index 20a41cfa666..bdeaf358076 100644 --- a/app/components/chat.tsx +++ b/app/components/chat.tsx @@ -517,8 +517,7 @@ export function ChatActions(props: { ); showToast(nextModel); } - // eslint-disable-next-line react-hooks/exhaustive-deps - }, [currentModel, models]); + }, [chatStore, currentModel, models]); return (