View source on GitHub |
Get the types.Model
for the given base model name.
google.generativeai.get_base_model(
name: model_types.BaseModelNameOptions,
*,
client=None,
request_options: (dict[str, Any] | None) = 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. |
request_options
|
Options for the request. |
Returns | |
---|---|
A types.Model .
|