cognita
cognita copied to clipboard
Add support for Gemini models
hi @mnvsk97 if this is not taken up yet by anyone, I would love to take this up and contribute.
- I think for the first point we have to update
model_gateway.pyandmodel_config.sample.yaml - for the second one, can u please explain a little more ?
any updates on this ? @mnvsk97
cc: @chiragjn
Hi @mnvsk97 @chiragjn please lemme know if this enhancement is still in the roadmap. Would be super grateful if given the chance to contribute
Hey @AbhishekRP2002 , sorry I didn't get chance to reply earlier. I am wondering, now that Gemini has a openai compatible API (https://ai.google.dev/gemini-api/docs/openai), is this still needed?
I know accessing Gemini without API Key via some service account will need separate work
Hey @AbhishekRP2002 , sorry I didn't get chance to reply earlier. I am wondering, now that Gemini has a openai compatible API (https://ai.google.dev/gemini-api/docs/openai), is this still needed?
I know accessing Gemini without API Key via some service account will need separate work
yeah u are right actually, i think with Gemini models accessible using the OpenAI lib we don't need to make any changes. I thought in the direction of using gemini models either via Google AI Studio ( google.generativeai package ) or Vertex AI. Apologies. yeah for service account we need the GOOGLE_APPLICATIONS_CREDENTIALS with authentication via google auth.
Hello @AbhishekRP2002, I've updated the issue description as per the conversation done so far. Would you still like to pick this up? Please let us know if you need any help in getting started.