Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

fix: update model for default thread

Faisal Amirc232b0764350
diff --git a/web-app/src/containers/SetupScreen.tsx b/web-app/src/containers/SetupScreen.tsx
index 599ee8bc1..dbfd95824 100644
--- a/web-app/src/containers/SetupScreen.tsx
+++ b/web-app/src/containers/SetupScreen.tsx
@@ -799,13 +799,12 @@ function SetupScreen() {
if (threadId && threadExists) {
// Update the thread with the downloaded model
- await serviceHub.threads().updateThread({
- id: threadId,
+ useThreads.getState().updateThread(threadId, {
model: {
id: defaultVariant.model_id,
provider: 'llamacpp',
},
- } as Thread)
+ })
navigate({
to: route.threadsDetail,