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