vishalmysore / sam

Autonomous Agent or Large Action Model Implementation in Java. Selenium and AI integration, AI based validations for tests. UI Validation, Image processing and much more
MIT License
11 stars 2 forks source link

Suspect of malformed URL in "ImageActionExample" #2

Closed franz0272 closed 3 months ago

franz0272 commented 3 months ago

Hi. I've been trying for days to execute "ImageActionExample", but I always obtain the following error:

Exception in thread "main" com.t4a.processor.AIProcessingException: com.google.api.gax.rpc.PermissionDeniedException: io.grpc.StatusRuntimeException: PERMISSION_DENIED: Permission 'aiplatform.endpoints.predict' denied on resource '//aiplatform.googleapis.com/projects/MYPROJECT/locations/europe-west8/publishers/google/models/gemini-1.0-pro-vision-001' (or it may not exist). at com.t4a.processor.GeminiImageActionProcessor.imageToText(GeminiImageActionProcessor.java:124) at org.example.image.ImageActionExample.main(ImageActionExample.java:26) Caused by: com.google.api.gax.rpc.PermissionDeniedException: io.grpc.StatusRuntimeException: PERMISSION_DENIED: Permission 'aiplatform.endpoints.predict' denied on resource '//aiplatform.googleapis.com/projects/MYPROJECT/locations/europe-west8/publishers/google/models/gemini-1.0-pro-vision-001' (or it may not exist).

My suspect is that the URL is not well formed, since " v1/ projects " should be, in my opinion, the right path to point to.

What am I doing wrong?

Thank you so much, Franz

vishalmysore commented 3 months ago

hey this seems permission issue on your google cloud setup , can you please look into this thread https://www.googlecloudcommunity.com/gc/AI-ML/text-bison-001-IAM-PERMISSION-DENIED/m-p/602198

franz0272 commented 3 months ago

Working, now! Thanks!!!!!