[fix] loads emotion when loading supamemory
This commit is contained in:
@@ -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"],
|
||||||
|
|||||||
Reference in New Issue
Block a user