[fix] temp fix for ui freezing

This commit is contained in:
kwaroran
2023-05-10 06:38:04 +09:00
parent fe9e636474
commit 1836e00106
3 changed files with 8 additions and 28 deletions

View File

@@ -11,28 +11,6 @@ import { characterFormatUpdate } from "./characters"
import { downloadFile, readImage } from "./globalApi"
import { cloneDeep } from "lodash"
type OfficialCardSpec = {
spec: 'chara_card_v2'
spec_version: '2.0' // May 8th addition
data: {
name: string
description: string
personality: string
scenario: string
first_mes: string
mes_example: string
creator_notes: string
system_prompt: string
post_history_instructions: string
alternate_greetings: string[]
character_book?: CharacterBook
tags: string[]
creator: string
character_version: number
extensions: Record<string, any>
}
}
type CharacterBook = null
export async function importCharacter() {