From a961a553d82157d1a29e56db3ef90228b41048bd Mon Sep 17 00:00:00 2001 From: Kwaroran Date: Wed, 18 Dec 2024 03:38:20 +0900 Subject: [PATCH] Move DeveloperRole --- src/ts/process/request.ts | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/ts/process/request.ts b/src/ts/process/request.ts index 412f7918..324c55b3 100644 --- a/src/ts/process/request.ts +++ b/src/ts/process/request.ts @@ -502,6 +502,17 @@ async function requestOpenAI(arg:RequestDataArgumentExtended):Promise { + if(v.role === 'system'){ + return { + ...v, + role: 'developer' + } + } + }) + } + console.log(formatedChat) if(arg.modelInfo.format === LLMFormat.Mistral){ requestModel = aiModel @@ -555,17 +566,6 @@ async function requestOpenAI(arg:RequestDataArgumentExtended):Promise { - if(v.role === 'system'){ - return { - ...v, - role: 'developer' - } - } - }) - } const res = await globalFetch(arg.customURL ?? "https://api.mistral.ai/v1/chat/completions", { body: applyParameters({