genai.text.generation.limits.limit_service module#
- class genai.text.generation.limits.limit_service.LimitService[source]#
Bases:
BaseService
[BaseServiceConfig
,BaseServiceServices
]- async aretrieve()[source]#
Retrieves the current text generation limit from the server.
- Raises:
ApiResponseException – If target feedback/generation does not exist or cannot be updated.
ApiNetworkException – In case of unhandled network error.
- Return type:
- retrieve()[source]#
Retrieves the current text generation limit from the server.
- Raises:
ApiResponseException – In case of a known API error.
ApiNetworkException – In case of unhandled network error.
- Return type: