Closed richardksizemore closed 4 weeks ago
Hello @richardksizemore You can use generativeModel method.You can pass string instead of enum to the model parameter.
$gemini->generativeModel(model: ModelType::GEMINI_PRO);
Thanks for the quick response @aydinfatih
For clarification like this?
Gemini::generativeModel(model: 'gemini-1.5-flash')->withGenerationConfig($this->generationConfig) ->generateContent($prompt);
You are welcome. Yes, you can use it this way.
How do we specify which text model to specifically use in our requests. For example models/gemini-1.0-pro vs models/gemini-1.5-pro vs models/gemini-1.5-flash. I understand how to switch between geminiPro() and geminiProVision() but not between the different text model versions. Thanks