Add support for replied messages
This commit is contained in:
parent
6264567ec9
commit
791883f580
5 changed files with 46 additions and 8 deletions
|
|
@ -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),
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue