[docs]@set_service_action_metadata(endpoint=TextEmbeddingLimitRetrieveEndpoint)defretrieve(self)->TextEmbeddingLimitRetrieveResponse:""" Retrieves the current text embedding limit from the server. Raises: ApiResponseException: In case of a known API error. ApiNetworkException: In case of unhandled network error. """self._log_method_execution("Limit Retrieve")metadata=get_service_action_metadata(self.retrieve)withself._get_http_client()asclient:response=client.get(url=self._get_endpoint(metadata.endpoint),params=_TextEmbeddingLimitRetrieveParametersQuery().model_dump(),)returnTextEmbeddingLimitRetrieveResponse(**response.json())
[docs]@set_service_action_metadata(endpoint=TextEmbeddingLimitRetrieveEndpoint)asyncdefaretrieve(self)->TextEmbeddingLimitRetrieveResponse:""" Retrieves the current text embedding limit from the server. Raises: ApiResponseException: In case of a known API error. ApiNetworkException: In case of unhandled network error. """self._log_method_execution("Limit ARetrieve")metadata=get_service_action_metadata(self.aretrieve)asyncwithself._get_async_http_client()asclient:response=awaitclient.get(url=self._get_endpoint(metadata.endpoint),params=_TextEmbeddingLimitRetrieveParametersQuery().model_dump(),)returnTextEmbeddingLimitRetrieveResponse(**response.json())