Merge branch 'main' of https://github.com/kwaroran/RisuAI
This commit is contained in:
@@ -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.59.9"
|
||||
export let appVer = "1.60.1"
|
||||
export let webAppSubVer = ''
|
||||
|
||||
export function setDatabase(data:Database){
|
||||
@@ -588,6 +588,12 @@ export interface character{
|
||||
globalLore: loreBook[]
|
||||
chaId: string
|
||||
sdData: [string, string][]
|
||||
newGenData?: {
|
||||
prompt: string,
|
||||
negative: string,
|
||||
instructions: string,
|
||||
emotionInstructions: string,
|
||||
}
|
||||
customscript: customscript[]
|
||||
triggerscript: triggerscript[]
|
||||
utilityBot: boolean
|
||||
@@ -641,6 +647,7 @@ export interface character{
|
||||
extentions?:{[key:string]:any}
|
||||
largePortrait?:boolean
|
||||
lorePlus?:boolean
|
||||
inlayViewScreen?:boolean
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -685,16 +685,6 @@ export async function globalFetch(url:string, arg:{
|
||||
headers: headers,
|
||||
method: method
|
||||
})
|
||||
if(da.headers.get('content-type')?.includes('application/x-zip-compressed')){
|
||||
const daText = await da.blob()
|
||||
|
||||
addFetchLog(daText, da.ok && da.status >= 200 && da.status < 300)
|
||||
return {
|
||||
ok: da.ok && da.status >= 200 && da.status < 300,
|
||||
data: daText,
|
||||
headers: Object.fromEntries(da.headers)
|
||||
}
|
||||
}
|
||||
const daText = await da.text()
|
||||
try {
|
||||
const dat = JSON.parse(daText)
|
||||
|
||||
Reference in New Issue
Block a user