Add support Amazon Bedrock Claud 3.0

Comment From: ben-gineer

We need to add support for Claude's Messages API as a prerequisite. All previous Claude versions support this. See:

https://docs.anthropic.com/claude/reference/migrating-from-text-completions-to-messages

Comment From: ben-gineer

If I can help with this, let me know.

It would be good to determine whether we wish to keep compatibility with the Text Completions API or not? Anthropic claim the Messages API should work with earlier models. See: https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters-anthropic-claude-messages.html

However, some users may have invested in crafting prompts using the legacy Completions API.

Comment From: ben-gineer

Initial attempt over at https://github.com/spring-projects/spring-ai/pull/424

@tzolov - would you be able to comment on how we can incorporate support for the new Messages API? It's currently sitting in a new package, as the APIs are quite different.

The package name at least should change, as this isn't Claude 3 specific. I've tested on Instant, 2 and 3 models.

Thanks

Comment From: tzolov

Resolved with #424