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(threads): persist assistant parameters so sampler settings survive restart

Akarshan Biswas62430c3a9068
diff --git a/web-app/src/services/threads/default.ts b/web-app/src/services/threads/default.ts
index c7b8061f4..3bbb8f6c7 100644
--- a/web-app/src/services/threads/default.ts
+++ b/web-app/src/services/threads/default.ts
@@ -128,10 +128,8 @@ export class DefaultThreadsService implements ThreadsService {
?.modifyThread({
...thread,
assistants: thread.assistants?.map((e) => ({
+ ...e,
model: toModelPayload(thread.model),
- id: e.id,
- name: e.name,
- instructions: e.instructions,
})) ?? [
{ model: toModelPayload(thread.model), id: 'jan', name: 'Jan' },
],