generative-ai-python

google.generativeai.list_tuned_models

Calls the API to list all tuned models.

import pprint
for model in genai.list_tuned_models():
    pprint.pprint(model)
`page_size` How many `types.Models` to fetch per page (api call).
`client` You may pass a `glm.ModelServiceClient` instead of using the default client.
`request_options` Options for the request.
types.TunedModel objects.