Add support for replied messages

This commit is contained in:
Aslan 2025-12-29 00:33:52 +01:00
parent 6264567ec9
commit 791883f580
5 changed files with 46 additions and 8 deletions

View file

@ -10,10 +10,12 @@ const googleAI = new GoogleGenAI({
const getTextGemini = async (
instructions: IAIInstructions,
input: string,
oldInput?: string,
): Promise<AIResponseText> => {
console.log([oldInput, input]);
const response = await googleAI.models.generateContent({
model: "gemini-3-flash-preview",
contents: input,
contents: oldInput ? [oldInput, input] : input,
config: {
systemInstruction: JSON.stringify(instructions),
},