From 10bd1fe2ad9e1db27cb77831ca34f6fade1a728f Mon Sep 17 00:00:00 2001 From: kwaroran Date: Thu, 15 Jun 2023 10:10:20 +0900 Subject: [PATCH] [fix] loads emotion when loading supamemory --- src/ts/process/request.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/ts/process/request.ts b/src/ts/process/request.ts index dc4edc78..3fe36380 100644 --- a/src/ts/process/request.ts +++ b/src/ts/process/request.ts @@ -44,7 +44,7 @@ interface OaiFunctions { properties: { [key:string]: { type: string; - enum: string[]; // replace 'string[]' with 'Emotion[]' if 'Emotion' is an enum type + enum: string[] }; }; required: string[]; @@ -100,10 +100,7 @@ export async function requestChatDataMain(arg:requestDataArgument, model:'model' } } - let currentEmotion = currentChar.emotionImages - let emotionList = currentEmotion.map((a) => { - return a[0] - }) + let oaiFunctions:OaiFunctions[] = [] @@ -117,7 +114,7 @@ export async function requestChatDataMain(arg:requestDataArgument, model:'model' "type": "object", "properties": { "emotion": { - "type": "string", "enum": emotionList + "type": "string", "enum": [] }, }, "required": ["emotion"],