[feat] better stringlizer

This commit is contained in:
kwaroran
2023-05-24 02:39:56 +09:00
parent 53ca05652d
commit 3f4baac593
3 changed files with 20 additions and 13 deletions

View File

@@ -53,6 +53,11 @@ export async function requestChatDataMain(arg:requestDataArgument, model:'model'
switch(aiModel){
case 'gpt35':
case 'gpt4':{
for(let i=0;i<formated.length;i++){
formated[i].name = undefined
}
const body = ({
model: aiModel === 'gpt35' ? 'gpt-3.5-turbo' : 'gpt-4',
messages: formated,