mishig HF staff commited on
Commit
e15701a
1 Parent(s): 2146f83

fix deep-clone issue

Browse files
Files changed (1) hide show
  1. src/routes/+page.svelte +1 -1
src/routes/+page.svelte CHANGED
@@ -401,7 +401,7 @@
401
  id: String(Math.random()),
402
  model: e.target.value,
403
  config: { temperature: 0.5, maxTokens: 2048, streaming: true, jsonMode: false },
404
- messages: conversations[0].messages
405
  }
406
  ];
407
  }}
 
401
  id: String(Math.random()),
402
  model: e.target.value,
403
  config: { temperature: 0.5, maxTokens: 2048, streaming: true, jsonMode: false },
404
+ messages: [...conversations[0].messages]
405
  }
406
  ];
407
  }}