Prepare new realm upload

This commit is contained in:
kwaroran
2024-03-28 03:02:18 +09:00
parent 279b68d3c6
commit ea6b1d20e5
5 changed files with 83 additions and 10 deletions

View File

@@ -727,6 +727,7 @@ export interface character{
language: string
},
vits?: OnnxModelFiles
realmId?:string
}

View File

@@ -1178,6 +1178,16 @@ export class LocalWriter{
}
}
export class VirtualWriter{
buf = new AppendableBuffer()
async write(data:Uint8Array) {
this.buf.append(data)
}
async close(){
// do nothing
}
}
let fetchIndex = 0
let nativeFetchData:{[key:string]:StreamedFetchChunk[]} = {}