webstorm moment

This commit is contained in:
based
2023-12-15 02:01:42 +10:00
parent 60880cfd4d
commit 5071b9a369
3 changed files with 7 additions and 7 deletions

View File

@ -72,12 +72,12 @@ function convertClaudePrompt(messages, addHumanPrefix, addAssistantPostfix, with
return requestPrompt; return requestPrompt;
} }
function convertGooglePrompt(messages, type) { function convertGooglePrompt(messages, model) {
const contents = []; const contents = [];
let lastRole = ''; let lastRole = '';
let currentText = ''; let currentText = '';
const isMultimodal = type === 'gemini-pro-vision'; const isMultimodal = model === 'gemini-pro-vision';
if (isMultimodal) { if (isMultimodal) {
const combinedText = messages.map((message) => { const combinedText = messages.map((message) => {