Merge branch 'main' into docs/standardize-commands

This commit is contained in:
Hieu 2023-12-24 01:21:24 +09:00 committed by GitHub
commit 12f2caf99b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 4 deletions

View File

@ -70,7 +70,7 @@ Jan is an open-source ChatGPT alternative that runs 100% offline on your compute
<tr style="text-align: center">
<td style="text-align:center"><b>Experimental (Nighlty Build)</b></td>
<td style="text-align:center" colspan="4">
<a href='https://github.com/janhq/jan/actions/runs/7292673355'>
<a href='https://github.com/janhq/jan/actions/runs/7303451498'>
<b>Github action artifactory</b>
</a>
</td>

View File

@ -103,9 +103,13 @@ export const useCreateNewThread = () => {
function updateThreadMetadata(thread: Thread) {
updateThread(thread)
extensionManager
.get<ConversationalExtension>(ExtensionType.Conversational)
?.saveThread(thread)
const threadState = threadStates[thread.id]
const isFinishInit = threadState?.isFinishInit ?? true
if (isFinishInit) {
extensionManager
.get<ConversationalExtension>(ExtensionType.Conversational)
?.saveThread(thread)
}
}
return {