Expand description
Model name parsing helpers.
Functionsยง
- extract_
model_ name - Extract simple model name from a fully-qualified resource path.
- is_
gemini1_ model - Returns
trueif the model is a Gemini 1.x model (name starts with"gemini-1"). - is_
gemini2_ or_ above - Returns
trueif the model is Gemini 2.x or above. - is_
gemini_ model - Returns
trueif the model name starts with"gemini-".