google.generativeai.get_base_model#
View source on GitHub
|
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 | |
|---|---|
|
The name of the model to fetch. Should start with |
|
|
The client to use. |
|
|
Options for the request. |
|
Returns | |
|---|---|
|
A |
View source on GitHub