[feat] add novellist damsel

This commit is contained in:
kwaroran
2023-06-26 00:25:25 +09:00
parent 90b60d71b5
commit 0bbd5dbdac
2 changed files with 11 additions and 3 deletions

View File

@@ -556,7 +556,8 @@ export async function requestChatDataMain(arg:requestDataArgument, model:'model'
result: data.results[0].text
}
}
case "novellist":{
case "novellist":
case "novellist_damsel":{
const auth_key = db.novellistAPI;
const api_server_url = 'https://api.tringpt.com/';
@@ -572,6 +573,7 @@ export async function requestChatDataMain(arg:requestDataArgument, model:'model'
top_p: 0.7,
tailfree: 1.0,
rep_pen: arg.frequencyPenalty ?? (db.frequencyPenalty / 100) + 1,
model: aiModel === 'novellist_damsel' ? 'damsel' : 'supertrin'
};
const response = await globalFetch(api_server_url + '/api', {