fix assistant not working in chatml
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user