genai.model.model_service module#

class genai.model.model_service.ModelService[source]#

Bases: BaseService[BaseServiceConfig, BaseServiceServices]

list(*, type=None, limit=None, offset=None)[source]#
Parameters:
  • type (str | ModelType | None) – Specify concrete model type. Default is everything.

  • limit (int | None) – The maximum number of models to retrieve.

  • offset (int | None) – The number of models to skip before starting to retrieve.

Raises:
Return type:

ModelRetrieveResponse

retrieve(id)[source]#
Raises:
Parameters:

id (str) –

Return type:

ModelIdRetrieveResponse