Upgrade translator playground

This commit is contained in:
Kwaroran
2025-02-25 04:36:58 +09:00
parent 2af57d3c67
commit ed2957fc50
4 changed files with 123 additions and 9 deletions

View File

@@ -247,7 +247,7 @@ export async function requestChatData(arg:requestDataArgument, model:ModelModeEx
try{
const currentChar = getCurrentCharacter()
if(currentChar.type !== 'group'){
if(currentChar?.type !== 'group'){
const perf = performance.now()
const d = await runTrigger(currentChar, 'request', {
chat: getCurrentChat(),