entropy-research / Devon

Devon: An open-source pair programmer
GNU Affero General Public License v3.0
2.36k stars 172 forks source link

Gemini #65

Open j0yk1ll opened 1 month ago

j0yk1ll commented 1 month ago

Added support for gemini. I tested it, but there's one issue at the moment.

When I launch it via the devon command I get an ACCESS_TOKEN_SCOPE_INSUFFICIENT error.

When I run npm run start start directly through (from the devon-tui directory, which requires to copy the .devon.config file inside the devon-tui directory) it works. It seems to me that there is an issue with genai running inside the pipx container. My current assumption is that you need some gcloud auth which is missing inside the pipx container.

This would solve https://github.com/entropy-research/Devon/issues/43

ObjectJosh commented 1 month ago

@j0yk1ll Hmm, I don't have a specific answer for the ACCESS_TOKEN_SCOPE_INSUFFICIENT error, but is it the same error reported here?

j0yk1ll commented 1 month ago

@j0yk1ll Hmm, I don't have a specific answer for the ACCESS_TOKEN_SCOPE_INSUFFICIENT error, but is it the same error reported here?

Yes that's the error. I also couldn't find an actual answer online.

Alternatively we could use the VertexAI way to use Gemini instead of the AI Studio, but this requires a more complicated setup by the user because they need to create a google cloud project and add billing to their account.