Build an application to send Chat Prompts using the Gemini model Reviews
23943 reviews
Completed.
IronSoul Q. · Reviewed около 2 часов ago
update model to gemini-2.5-flash
유태 김. · Reviewed около 3 часов ago
Arpita B. · Reviewed около 13 часов ago
만료된 ai 모댈을 사용하도록 코드가 작성이 되어 있네요 제가 임의로 수정해서 사용했네용
김용성 G. · Reviewed около 17 часов ago
Olorunda S. · Reviewed около 20 часов ago
Patryk G. · Reviewed 1 день ago
Yash P. · Reviewed 1 день ago
on resource (or it may not exist). [reason: "IAM_PERMISSION_DENIED" domain: "iam.googleapis.com" metadata { key: "permission" value: "logging.logEntries.create" } , type_url: "type.googleapis.com/google.logging.v2.WriteLogEntriesPartialErrors" value: "\nX\010\000\022T\010\007\022PPermission \'logging.logEntries.create\' denied on resource (or it may not exist)." ] Failed to submit 1 logs. Traceback (most recent call last): File "/usr/local/lib/python3.13/dist-packages/google/cloud/logging_v2/handlers/transports/background_thread.py", line 122, in _safely_commit_batch batch.commit() ~~~~~~~~~~~~^^ File "/usr/local/lib/python3.13/dist-packages/google/cloud/logging_v2/logger.py", line 507, in commit client.logging_api.write_entries( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ entries, partial_success=partial_success, **kwargs ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/local/lib/python3.13/dist-packages/google/cloud/logging_v2/_gapic.py", line 167, in write_entries self._gapic_api.write_log_entries(request=request) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/dist-packages/google/cloud/logging_v2/services/logging_service_v2/client.py", line 1010, in write_log_entries response = rpc( request, ...<2 lines>... metadata=metadata, ) File "/usr/local/lib/python3.13/dist-packages/google/api_core/gapic_v1/method.py", line 131, in __call__ return wrapped_func(*args, **kwargs) File "/usr/local/lib/python3.13/dist-packages/google/api_core/retry/retry_unary.py", line 294, in retry_wrapped_func return retry_target( target, ...<3 lines>... on_error=on_error, ) File "/usr/local/lib/python3.13/dist-packages/google/api_core/retry/retry_unary.py", line 156, in retry_target next_sleep = _retry_error_helper( exc, ...<6 lines>... timeout, ) File "/usr/local/lib/python3.13/dist-packages/google/api_core/retry/retry_base.py", line 214, in _retry_error_helper raise final_exc from source_exc File "/usr/local/lib/python3.13/dist-packages/google/api_core/retry/retry_unary.py", line 147, in retry_target result = target() File "/usr/local/lib/python3.13/dist-packages/google/api_core/timeout.py", line 130, in func_with_timeout return func(*args, **kwargs) File "/usr/local/lib/python3.13/dist-packages/google/api_core/grpc_helpers.py", line 77, in error_remapped_callable raise exceptions.from_grpc_error(exc) from exc google.api_core.exceptions.PermissionDenied: 403 Permission 'logging.logEntries.create' denied on resource (or it may not exist). [reason: "IAM_PERMISSION_DENIED" domain: "iam.googleapis.com" metadata { key: "permission" value: "logging.logEntries.create" } , type_url: "type.googleapis.com/google.logging.v2.WriteLogEntriesPartialErrors" value: "\nX\010\000\022T\010\007\022PPermission \'logging.logEntries.create\' denied on resource (or it may not exist)." ] Traceback (most recent call last): File "/home/student/SendChatwithoutStream.py", line 27, in <module> response = chat.send_message("What are all the colors in a rainbow?") File "/usr/local/lib/python3.13/dist-packages/google/genai/chats.py", line 252, in send_message response = self._modules.generate_content( model=self._model, contents=self._curated_history + [input_content], # type: ignore[arg-type] config=config if config else self._config, ) File "/usr/local/lib/python3.13/dist-packages/google/genai/models.py", line 5215, in generate_content response = self._generate_content( model=model, contents=contents, config=parsed_config ) File "/usr/local/lib/python3.13/dist-packages/google/genai/models.py", line 3997, in _generate_content response = self._api_client.request( 'post', path, request_dict, http_options ) File "/usr/local/lib/python3.13/dist-packages/google/genai/_api_client.py", line 1386, in request response = self._request(http_request, http_options, stream=False) File "/usr/local/lib/python3.13/dist-packages/google/genai/_api_client.py", line 1222, in _request return self._retry(self._request_once, http_request, stream) # type: ignore[no-any-return] ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/dist-packages/tenacity/__init__.py", line 477, in __call__ do = self.iter(retry_state=retry_state) File "/usr/local/lib/python3.13/dist-packages/tenacity/__init__.py", line 378, in iter result = action(retry_state) File "/usr/local/lib/python3.13/dist-packages/tenacity/__init__.py", line 420, in exc_check raise retry_exc.reraise() ~~~~~~~~~~~~~~~~~^^ File "/usr/local/lib/python3.13/dist-packages/tenacity/__init__.py", line 187, in reraise raise self.last_attempt.result() ~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib/python3.13/concurrent/futures/_base.py", line 449, in result return self.__get_result() ~~~~~~~~~~~~~~~~~^^ File "/usr/lib/python3.13/concurrent/futures/_base.py", line 401, in __get_result raise self._exception File "/usr/local/lib/python3.13/dist-packages/tenacity/__init__.py", line 480, in __call__ result = fn(*args, **kwargs) File "/usr/local/lib/python3.13/dist-packages/google/genai/_api_client.py", line 1199, in _request_once errors.APIError.raise_for_response(response) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^ File "/usr/local/lib/python3.13/dist-packages/google/genai/errors.py", line 121, in raise_for_response cls.raise_error(response.status_code, response_json, response) ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/dist-packages/google/genai/errors.py", line 146, in raise_error raise ClientError(status_code, response_json, response) google.genai.errors.ClientError: 403 PERMISSION_DENIED. {'error': {'code': 403, 'message': "Permission 'aiplatform.endpoints.predict' denied on resource '//aiplatform.googleapis.com/projects/qwiklabs-gcp-00-d2eb8c6c84a9/locations/us-central1/publishers/google/models/gemini-2.5-flash' (or it may not exist).", 'status': 'PERMISSION_DENIED', 'details': [{'@type': 'type.googleapis.com/google.rpc.ErrorInfo',
GOOGLEUSER G. · Reviewed 1 день ago
didn't work
Itzel L. · Reviewed 2 дней ago
very good to learn it
Bikram S. · Reviewed 3 дней ago
Shivansh S. · Reviewed 3 дней ago
Reddy L. · Reviewed 3 дней ago
Souvik P. · Reviewed 5 дней ago
Gayatri J. · Reviewed 6 дней ago
Hesham S. · Reviewed 6 дней ago
文成 張. · Reviewed 6 дней ago
Nicha H. · Reviewed 7 дней ago
Joe D. · Reviewed 8 дней ago
Han Long C. · Reviewed 8 дней ago
Satyendra G. · Reviewed 9 дней ago
Satvik W. · Reviewed 9 дней ago
Alessandro L. · Reviewed 9 дней ago
Ashish K. · Reviewed 10 дней ago
Moparthi L. · Reviewed 10 дней ago
Nagendra S. · Reviewed 10 дней ago
We do not ensure the published reviews originate from consumers who have purchased or used the products. Reviews are not verified by Google.