Google Gemini support
Thanks for this awesome tool!
Gemini models are pretty good, and Google offers a generous free tier. Would it be possible to add support for their API?
@aurelg for what it's worth, I got Google's gemini's models to work in this fork a while back: https://github.com/a1v0lut10n/smartcat-gemini in this PR: https://github.com/a1v0lut10n/smartcat-gemini/pull/1. Was in a rush to try gemini's larger context windows with smartcat, and I did not get around to try and turn this into a contribution. But perhaps it is useful towards having Gemini support.
Hey @a1v0lut10n I already had noticed your work, and I cease this opportunity to say I would love for you to open a PR on this repo 😁
@aurelg I'd love smartcat to become gemini-compatible, I'm just a bit short on time atm, super open to contribs!
@efugier I'd be happy to create a PR adding gemini support.
For others reading this, the gemini api is compatible with the openai api, so this just works:
[openai]
url = "https://generativelanguage.googleapis.com/v1beta/chat/completions"
default_model = "gemini-2.0-flash"
api_key = ""
For others reading this, the gemini api is compatible with the openai api, so this just works:
Thanks, though I needed to get an API key now. From https://ai.google.dev/gemini-api/ - Maybe it stopped working for free.
I still had to put the key into the file directly, since it doesn't support something like $GEMINI_API_KEY - but I have no paid account, so I hope this is fine for now.