This commit is contained in:
based
2024-04-11 16:51:05 +10:00
parent 34bca69950
commit c4ec97aa50
2 changed files with 3 additions and 3 deletions

View File

@ -276,7 +276,7 @@ function convertGooglePrompt(messages, model, useSysPrompt = false) {
}
}
const system_instruction = { parts: { text: sys_prompt }};
const system_instruction = { parts: { text: sys_prompt.trim() }};
const contents = [];
messages.forEach((message, index) => {