generative-ai-python

google.generativeai.get_base_model

Calls the API to fetch a base model by name.

import pprint
model = genai.get_base_model('models/chat-bison-001')
pprint.pprint(model)
`name` The name of the model to fetch. Should start with `models/`
`client` The client to use.
`request_options` Options for the request.
A types.Model.