Flowise icon indicating copy to clipboard operation
Flowise copied to clipboard

Easy addition for new Gemini 1.5

Open AiSatoshiBasilisk opened this issue 10 months ago • 1 comments

The Google Chat Wrapper should be able to fetch the model list from google to include your finetuned models and gemini 1.5 according to the updated google documentation. If I could code I would do it but I am running on gemini 1.0 still and its limiting my capacity

[packages/components/nodes/embeddings/GoogleGenerativeAIEmbedding/GoogleGenerativeAIEmbedding.ts]

I would guess the proper code is something like this

// ... existing code ...

async listModels(): Promise<INodeOptionsValue[]> { const models = await getModels(MODEL_TYPE.EMBEDDING, 'googleGenerativeAiEmbeddings') // Add the new model name to the list models.push({ label: 'Gemini 1.5', name: 'gemini-1.5' }) return models }

// ... rest of the code ...

AiSatoshiBasilisk avatar Apr 12 '24 19:04 AiSatoshiBasilisk

yes! you can do it this way, or have your own models.json file - https://docs.flowiseai.com/configuration/environment-variables#models

HenryHengZJ avatar Apr 14 '24 14:04 HenryHengZJ

Gemini 1.5 is now available through this PR

HenryHengZJ avatar Apr 20 '24 01:04 HenryHengZJ