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:
ApiResponseException – In case of a known API error.
ApiNetworkException – In case of unhandled network error.
ValidationError – In case of provided parameters are invalid.
- Return type:
- retrieve(id)[source]#
- Raises:
ValueError – If the id parameter is an empty string.
ApiResponseException – In case of a known API error.
ApiNetworkException – In case of unhandled network error.
ValidationError – In case of provided parameters are invalid.
- Parameters:
id (str) –
- Return type: