fix assistant not working in chatml

This commit is contained in:
kwaroran
2024-07-10 15:52:58 +09:00
parent 91102cc3b7
commit f591721645
6 changed files with 6 additions and 6 deletions

View File

@@ -2509,7 +2509,7 @@ export function parseChatML(data:string):OpenAIChat[]|null{
v = v.substring(6 + seperator.length)
}
else if(v.startsWith('assistant' + seperator)){
role = 'system'
role = 'assistant'
v = v.substring(9 + seperator.length)
}
//space/newline separators

View File

@@ -1,6 +1,6 @@
export const DataBase = writable({} as any as Database)
export const loadedStore = writable(false)
export let appVer = "120.2.0"
export let appVer = "120.2.1"
export let webAppSubVer = ''
import { get, writable } from 'svelte/store';