Skip to content

Latest commit

 

History

History
95 lines (62 loc) · 1.63 KB

File metadata and controls

95 lines (62 loc) · 1.63 KB

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

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.