Update version 1.71.4
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
},
|
||||
"package": {
|
||||
"productName": "RisuAI",
|
||||
"version": "1.71.3"
|
||||
"version": "1.71.4"
|
||||
},
|
||||
"tauri": {
|
||||
"allowlist": {
|
||||
|
||||
@@ -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)){
|
||||
|
||||
@@ -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){
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"version":"1.71.3"}
|
||||
{"version":"1.71.4"}
|
||||
Reference in New Issue
Block a user