Skip to content

Commit

Permalink
AIX: Gemini: assumption fix
Browse files Browse the repository at this point in the history
  • Loading branch information
enricoros committed Jan 10, 2025
1 parent 1a53484 commit 1ad20a1
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ export function aixToGeminiGenerateContent(model: AixAPI_Model, chatGenerate: Ai
}
return acc;
}, { parts: [] } as Exclude<TRequest['systemInstruction'], undefined>);

// unset system instructions with no parts
if (!systemInstruction.parts.length)
systemInstruction = undefined;
}

// Chat Messages
Expand Down

0 comments on commit 1ad20a1

Please sign in to comment.