Traceback (most recent call last): File "D:\anaconda3\lib\site-packages\google\api_core\grpc_helpers.py", line 79, in error_remapped_callable return callable_(*args, **kwargs) File "D:\anaconda3\lib\site-packages\grpc\_channel.py", line 1160, in __call__ return _end_unary_response_blocking(state, call, False, None) File "D:\anaconda3\lib\site-packages\grpc\_channel.py", line 1003, in _end_unary_response_blocking raise _InactiveRpcError(state) # pytype: disable=not-instantiable grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with: status = StatusCode.RESOURCE_EXHAUSTED details = "Resource has been exhausted (e.g. check quota)." debug_error_string = "UNKNOWN:Error received from peer ipv4:127.0.0.1:7890 {grpc_message:"Resource has been exhausted (e.g. check quota).", grpc_status:8, created_time:"2024-02-27T03:18:28.3008412+00:00"}" >
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "E:\code\python\project\HUGEMINI\backend.py", line 19, in text result = m.gemini_pro(history) File "E:\code\python\project\HUGEMINI\models.py", line 94, in gemini_pro response = self.model_pro.generate_content(history_processed) File "D:\anaconda3\lib\site-packages\google\generativeai\generative_models.py", line 243, in generate_content response = self._client.generate_content(request) File "D:\anaconda3\lib\site-packages\google\ai\generativelanguage_v1beta\services\generative_service\client.py", line 566, in generate_content response = rpc( File "D:\anaconda3\lib\site-packages\google\api_core\gapic_v1\method.py", line 131, in __call__ return wrapped_func(*args, **kwargs) File "D:\anaconda3\lib\site-packages\google\api_core\retry.py", line 372, in retry_wrapped_func return retry_target( File "D:\anaconda3\lib\site-packages\google\api_core\retry.py", line 207, in retry_target result = target() File "D:\anaconda3\lib\site-packages\google\api_core\timeout.py", line 120, in func_with_timeout return func(*args, **kwargs) File "D:\anaconda3\lib\site-packages\google\api_core\grpc_helpers.py", line 81, in error_remapped_callable raise exceptions.from_grpc_error(exc) from exc google.api_core.exceptions.ResourceExhausted: 429 Resource has been exhausted (e.g. check quota).