Closed doggy8088 closed 5 months ago
Hi @doggy8088 ,
Thanks for the suggestion. That would be similar to the genai
object available in the other SDKs. I didn't consider the abstraction of the Google AI. However, it can make sense to add this extra layer.
One of the issues I'm facing at the moment, is that "administrative" methods like ListModels, GetModel are at the wrong location. This might also be relevant for CreateTunedModel.
Also, take into consideration that GenerativeModel
can work autonomously to detect the targetted API based on environmental constraints, like using .env
and envVars.
using Mscc.GenerativeAI;
var model = new GenerativeModel();
As described in the README: Using Environment variables
Again, thanks for the suggestion. This is helpful to clear my own thoughts.
Hi @doggy8088
I added this request to version 0.8.4. See commit: https://github.com/mscraftsman/generative-ai/commit/16403cec663f2ba7507c8c2177a05f3b073324b4
I hope that it's more consistent now. Eventually, I have to make further changes regarding Google AI using OAuth / ADC authentication. Currently, there is a null check of ApiKey in the method.
Just a reminder that the README.md
should be updated as well.
There are two types of Google Cloud Generative AI:
Google AI Gemini API
Vertex AI Gemini API
What if we keep these two APIs consistent?
For example,
Google AI Gemini API
Vertex AI Gemini API