Update version 1.71.4

This commit is contained in:
kwaroran
2024-01-06 23:08:15 +09:00
parent f638866308
commit 8617257298
4 changed files with 16 additions and 10 deletions

View File

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

View File

@@ -25,15 +25,21 @@ async function initTransformers(){
if(url.startsWith('/tf/Xenova/')){
try {
const newURL = 'https://sv.risuai.xyz/transformers/' + url.substring(11)
const v = await tfCache.match(newURL)
if(v){
return v
}
const response = await fetch(newURL)
await tfCache.put(newURL, response.clone())
return response
if(response.status<200 || response.status>=400){
return new Response("Not found", {status: 404,
headers: {
'Content-Type': 'text/plain'
}
})
}
return response
} catch (error) {
return await tfCache.match(url)
return new Response("Not found", {status: 404,
headers: {
'Content-Type': 'text/plain'
}
})
}
}
if(Object.keys(tfMap).includes(url)){

View File

@@ -15,7 +15,7 @@ import type { OobaChatCompletionRequestParams } from '../model/ooba';
export const DataBase = writable({} as any as Database)
export const loadedStore = writable(false)
export let appVer = "1.71.3"
export let appVer = "1.71.4"
export let webAppSubVer = ''
export function setDatabase(data:Database){

View File

@@ -1 +1 @@
{"version":"1.71.3"}
{"version":"1.71.4"}