[Bug] Gemini Connection Error
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:
I also set the gemini_api_key and then save the settings.
Now, I try to analyse the data in Data tab:
I then get this error:
Error analyzing
Please resolve this issue
Steps to reproduce
No response
Additional context
No response
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.