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

@@ -8,7 +8,7 @@ android {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 2
versionName "120.2.0"
versionName "120.2.1"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
aaptOptions {
// Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.

View File

@@ -12,7 +12,7 @@
"filters": [],
"attributes": [],
"versionCode": 2,
"versionName": "120.2.0",
"versionName": "120.2.1",
"outputFile": "app-release.apk"
}
],

View File

@@ -8,7 +8,7 @@
},
"package": {
"productName": "RisuAI",
"version": "120.2.0"
"version": "120.2.1"
},
"tauri": {
"allowlist": {

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';

View File

@@ -1 +1 @@
{"version":"120.2.0"}
{"version":"120.2.1"}