build-an-agentic-llm-assistant icon indicating copy to clipboard operation
build-an-agentic-llm-assistant copied to clipboard

LLM model invalid

Open jenia opened this issue 1 year ago • 1 comments

Hello.

I can't get the software to work properly. I get this response:

{'statusCode': 200, 'response': 'conversation: Error raised by bedrock service: An error occurred (ValidationException) when calling the InvokeModel operation: The provided model identifier is invalid. Please try again later

This is the model ID I'm using amazon.titan-text-premier-v1:0.

I also tried using ChatBedrockConverse instead of ConversationChain:

    conversation_chain = ChatBedrockConverse(model=model_id)
    response = conversation_chain.invoke(user_input)
    return response

I get the exact same error.

What confuses me is that this model ID amazon.titan-text-premier-v1:0 is valid and listed here: image

So I'm stuck and don't know how to use that model. Can someone please give me a hint?

jenia avatar Aug 21 '24 21:08 jenia

Hi jenia, this project doesn't use amazon.titan-text-premier-v1:0 currently. If you have a general questions about using a specific model on Bedrock, you can ask it on report.aws

mohamed-ali avatar Sep 02 '24 10:09 mohamed-ali