Skip to main content

gemini_model_from_path

Function gemini_model_from_path 

Source
pub fn gemini_model_from_path(path: &str) -> Option<String>
Expand description

Extracts the model from a Gemini request path (/v1beta/models/{model}:generateContent). Returns None for other paths.