aws-samples / serverless-pdf-chat

LLM-powered document chat using Amazon Bedrock and AWS Serverless
https://aws.amazon.com/blogs/compute/building-a-serverless-document-chat-with-aws-lambda-and-amazon-bedrock/
MIT No Attribution
228 stars 206 forks source link

Update main.py #47

Closed kbjha closed 1 month ago

kbjha commented 3 months ago

change model name

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

kbjha commented 3 months ago

added new model

dineshPULSY commented 3 months ago

getting this error :

[ERROR] ValueError: Error raised by bedrock service: An error occurred (ValidationException) when calling the InvokeModel operation: "claude-3-sonnet-20240229" is not supported on this API. Please use the Messages API instead.

moserda commented 1 month ago

Hi @kbjha, since some of your proposed changes had already been implemented and I now also added the possibility to select the embeddings model through a SAM parameter (with Titan v2 as default) in #54 , I'll close this PR.