elysia icon indicating copy to clipboard operation
elysia copied to clipboard

[Bug] Gemini Connection Error

Open sushantmnair opened this issue 3 months ago • 1 comments

Elysia version

0.2.6

Installation method

poetry install

Is the issue occurring in the Elysia package or the Elysia web app?

Elysia web app (using the app via elysia start)

What happened?

This is my pyproject.toml file for reference:

[tool.poetry]
package-mode = false
name = "elysia"
version = "0.1.0"
description = ""
authors = [""]
readme = "README.md"

[tool.poetry.dependencies]
python = "3.12.*"
elysia-ai = "*"
weaviate-client = "*"
pandas = "*"
openpyxl = "*"
scikit-learn = "*"
numpy = "*" 
matplotlib = "*"
seaborn = "*"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

I run elysia start. Then I go to settings and set me model as:

Image

I also set the gemini_api_key and then save the settings.

Now, I try to analyse the data in Data tab:

Image

I then get this error: Error analyzing : Error preprocessing collection: The model gemini-2.5-flash is not available for provider gemini. Some example models for gemini are: gemini/gemini-2.5-pro-exp-03-25, gemini/gemini-2.5-pro, gemini/gemini-2.5-flash, gemini/gemini-2.0-flash-live-001, gemini/gemini-2.5-flash-preview-tts. Check the full model documentation (https://docs.litellm.ai/docs/providers). (Total time: 6s)

Please resolve this issue

Steps to reproduce

No response

Additional context

No response

sushantmnair avatar Nov 25 '25 06:11 sushantmnair

Thank you for the detailed issue report. So what's happening here is that for some reason your model connection is erroring, and Elysia tries to 'guess' the reason why your connection is broken. In this case, it guesses incorrectly and says your model name is wrong. The Elysia errors like this will never appear unless there was another error that happened first, using the provider LiteLLM (which is what Elysia routes through to connect to the LLM API).

Could you please try using LiteLLM directly in Python using the following LiteLLM Gemini quick guide: https://docs.litellm.ai/docs/providers/gemini

This will provide a more detailed error message and we can take it from there.

dannyjameswilliams avatar Nov 26 '25 11:11 dannyjameswilliams