From f2a6e2951e078a256e38c1e1b3b475525cdc89e9 Mon Sep 17 00:00:00 2001 From: Service Account Date: Fri, 22 Dec 2023 20:18:32 +0000 Subject: [PATCH 1/2] janhq/jan: Update README.md with nightly build artifact URL --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8f7cb6c81..b46aad75c 100644 --- a/README.md +++ b/README.md @@ -70,7 +70,7 @@ Jan is an open-source ChatGPT alternative that runs 100% offline on your compute Experimental (Nighlty Build) - + Github action artifactory From 771f445a6a9db86e9a981333573f8c1cbbdbbe33 Mon Sep 17 00:00:00 2001 From: NamH Date: Sat, 23 Dec 2023 11:16:58 +0700 Subject: [PATCH 2/2] fix(Thread): #1168 fix newly created thread cannot select model after restart (#1176) Signed-off-by: James Co-authored-by: James --- web/hooks/useCreateNewThread.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/web/hooks/useCreateNewThread.ts b/web/hooks/useCreateNewThread.ts index b7544f74e..7f81c1e83 100644 --- a/web/hooks/useCreateNewThread.ts +++ b/web/hooks/useCreateNewThread.ts @@ -103,9 +103,13 @@ export const useCreateNewThread = () => { function updateThreadMetadata(thread: Thread) { updateThread(thread) - extensionManager - .get(ExtensionType.Conversational) - ?.saveThread(thread) + const threadState = threadStates[thread.id] + const isFinishInit = threadState?.isFinishInit ?? true + if (isFinishInit) { + extensionManager + .get(ExtensionType.Conversational) + ?.saveThread(thread) + } } return {