Whitespace clean-up

This commit is contained in:
Cohee
2025-01-06 19:20:04 +02:00
parent 2103e6238c
commit 9062b6bc4d

View File

@@ -309,7 +309,7 @@ async function sendMakerSuiteRequest(request, response) {
const prompt = convertGooglePrompt(request.body.messages, model, should_use_system_prompt, getPromptNames(request));
let safetySettings = GEMINI_SAFETY;
if (model.includes('gemini-2.0-flash-exp')) {
safetySettings = GEMINI_SAFETY.map(setting => ({ ...setting, threshold: 'OFF' }));
}
@@ -320,7 +320,6 @@ async function sendMakerSuiteRequest(request, response) {
generationConfig: generationConfig,
};
if (should_use_system_prompt) {
body.system_instruction = prompt.system_instruction;
}