[fix] loads emotion when loading supamemory

This commit is contained in:
kwaroran
2023-06-15 10:10:20 +09:00
parent 7e63521cc1
commit 10bd1fe2ad

View File

@@ -44,7 +44,7 @@ interface OaiFunctions {
properties: { properties: {
[key:string]: { [key:string]: {
type: string; type: string;
enum: string[]; // replace 'string[]' with 'Emotion[]' if 'Emotion' is an enum type enum: string[]
}; };
}; };
required: 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[] = [] let oaiFunctions:OaiFunctions[] = []
@@ -117,7 +114,7 @@ export async function requestChatDataMain(arg:requestDataArgument, model:'model'
"type": "object", "type": "object",
"properties": { "properties": {
"emotion": { "emotion": {
"type": "string", "enum": emotionList "type": "string", "enum": []
}, },
}, },
"required": ["emotion"], "required": ["emotion"],