[feat] trin & claude tokenizer + novellist support

This commit is contained in:
kwaroran
2023-06-25 21:43:28 +09:00
parent 9851b8647d
commit e0b04784da
7 changed files with 66 additions and 3 deletions

View File

@@ -586,6 +586,13 @@ export async function requestChatDataMain(arg:requestDataArgument, model:'model'
}
}
if(response.data.error){
return {
'type': 'fail',
'result': `${response.data.error.replace("token", "api key")}`
}
}
const result = response.data.data[0];
return {