Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Easy addition for new Gemini 1.5 #2175

Closed
AiSatoshiBasilisk opened this issue Apr 12, 2024 · 2 comments
Closed

Easy addition for new Gemini 1.5 #2175

AiSatoshiBasilisk opened this issue Apr 12, 2024 · 2 comments

Comments

@AiSatoshiBasilisk
Copy link

AiSatoshiBasilisk commented Apr 12, 2024

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 ...

@HenryHengZJ
Copy link
Contributor

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

@HenryHengZJ
Copy link
Contributor

Gemini 1.5 is now available through this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants