Access refused to Bedrock model

0

Hello, I've been granted access to Bedrock Titan Text G1 Lite model, as shown in the screen copy below:

Model access

However, trying to connect a client, as follows:

private final BedrockRuntimeAsyncClient client = BedrockRuntimeAsyncClient.builder().region(Region.EU_WEST_3).create().build();

using amazon.titan-text-lite-v1 as a model ID, raises the following exception:

Model invocation failed: java.util.concurrent.CompletionException: software.amazon.awssdk.services.bedrockruntime.model.AccessDeniedException: You don't have access to the model with the specified model ID. (Service: BedrockRuntime, Status Code: 403, Request ID: 6574c707-1378-4acd-98d0-ea794134acd7)
2024-04-08 17:01:42,628 ERROR [io.qua.ver.htt.run.QuarkusErrorHandler] (executor-thread-1) HTTP Request to /bedrock/titan?prompt=My+name+is+Nick failed, error id: 8ee37fb1-6dca-418f-b644-e37406555cf7-1: org.jboss.resteasy.spi.UnhandledException: java.util.concurrent.ExecutionException: software.amazon.awssdk.services.bedrockruntime.model.AccessDeniedException: You don't have access to the model with the specified model ID. (Service: BedrockRuntime, Status Code: 403, Request ID: 6574c707-1378-4acd-98d0-ea794134acd7)
profile picture
nicolas
demandé il y a un mois298 vues
2 réponses
1
Réponse acceptée

My bad, I've mistakenly used mistral.mistral-7b-instruct-v0:2 instead of amazon.titan-text-lite-v1 as a model ID. Using the right model ID it works as expected. Closing.

profile picture
nicolas
répondu il y a un mois
profile picture
EXPERT
vérifié il y a un mois
1

Hi there

Can you confirm that you requested access to the models in the same region that you are running the application from eu-west-3?

profile pictureAWS
EXPERT
Matt-B
répondu il y a un mois
profile picture
EXPERT
vérifié il y a un mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions