Fix fallbackmodel

This commit is contained in:
Kwaroran
2025-03-23 14:02:34 +09:00
parent 19c7097720
commit a717510d07
2 changed files with 8 additions and 1 deletions

View File

@@ -268,7 +268,7 @@ function applyParameters(data: { [key: string]: any }, parameters: Parameter[],
export async function requestChatData(arg:requestDataArgument, model:ModelModeExtended, abortSignal:AbortSignal=null):Promise<requestDataResponse> {
const db = getDatabase()
const fallBackModels:string[] = db?.fallbackModels?.[model] ?? []
const fallBackModels:string[] = safeStructuredClone(db?.fallbackModels?.[model] ?? [])
fallBackModels.push('')
const originalFormated = safeStructuredClone(arg.formated)