![]() |
Calls the API to fetch a base model by name.
google.generativeai.get_base_model(
name: model_types.BaseModelNameOptions,
*,
client=None,
request_options: (helper_types.RequestOptionsType | None) = None
) -> model_types.Model
import pprint
model = genai.get_base_model('models/chat-bison-001')
pprint.pprint(model)
Args | |
---|---|
`name` | The name of the model to fetch. Should start with `models/` |
`client` | The client to use. |
`request_options` | Options for the request. |
Returns | |
---|---|
A types.Model .
|