![]() |
Get the types.Model
for the given base model name.
google.generativeai.get_base_model(
name: model_types.BaseModelNameOptions, *, client=None
) -> model_types.Model
import pprint
model = genai.get_model('models/chat-bison-001'):
pprint.pprint(model)
Args | |
---|---|
name
|
The name of the model to fetch. |
client
|
The client to use. |
Returns | |
---|---|
A types.Model .
|