From 73fda3bb937844f3ac246072cc50d5473e7f67f9 Mon Sep 17 00:00:00 2001 From: IHaBiS02 Date: Tue, 14 May 2024 05:48:14 +0900 Subject: [PATCH] Make exception on gpt based models from removing logit_bias --- src/ts/process/request.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ts/process/request.ts b/src/ts/process/request.ts index 63261528..da951040 100644 --- a/src/ts/process/request.ts +++ b/src/ts/process/request.ts @@ -497,10 +497,10 @@ export async function requestChatDataMain(arg:requestDataArgument, model:'model' // inlay models doesn't support logit_bias // gpt-4-turbo supports both logit_bias and inlay image if(!( - aiModel.startsWith('gpt4_turbo') || + aiModel.startsWith('gpt4') || (aiModel == 'reverse_proxy' && ( - db.proxyRequestModel?.startsWith('gpt4_turbo') || - (db.proxyRequestModel === 'custom' && db.customProxyRequestModel.startsWith('gpt-4-turbo')) + db.proxyRequestModel?.startsWith('gpt') || + (db.proxyRequestModel === 'custom' && db.customProxyRequestModel.startsWith('gpt')) )))){ // @ts-ignore delete body.logit_bias