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

gemini-pro not supported #530

Open
MKPTechnicals opened this issue May 3, 2024 · 0 comments · May be fixed by #674
Open

gemini-pro not supported #530

MKPTechnicals opened this issue May 3, 2024 · 0 comments · May be fixed by #674

Comments

@MKPTechnicals
Copy link

When I git pulled latest commits. New error started displaying when I use gemini-pro.

Error:

Exception in thread Thread-3 ():
Traceback (most recent call last):
File "C:\Users\HOME\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1045, in _bootstrap_inner
self.run()
File "C:\Users\HOME\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 982, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\HOME\Desktop\devika\devika.py", line 85, in
thread = Thread(target=lambda: agent.execute(message, project_name))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\HOME\Desktop\devika\src\agents\agent.py", line 279, in execute
plan = self.planner.execute(prompt, project_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\HOME\Desktop\devika\src\agents\planner\planner.py", line 70, in execute
response = self.llm.inference(prompt, project_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\HOME\Desktop\devika\src\llm\llm.py", line 90, in inference
raise ValueError(f"Model {self.model_id} not supported")
ValueError: Model gemini-pro not supported

image

erkinalp added a commit to erkinalp/devika that referenced this issue Dec 20, 2024
- Add better error messages for API key configuration
- Add comprehensive test coverage
- Update google-generativeai version requirement
- Add proper logging for debugging

Fixes stitionai#530

Co-Authored-By: Erkin Alp Güney <[email protected]>
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

Successfully merging a pull request may close this issue.

1 participant