You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi.
I've been trying for days to execute "ImageActionExample" of "sam" project (https://github.com/vishalmysore/sam), 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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi.
I've been trying for days to execute "ImageActionExample" of "sam" project (https://github.com/vishalmysore/sam), 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
Beta Was this translation helpful? Give feedback.
All reactions