https://promptfoo.dev/ logo
Bedrock Anthropic messages api
# ❓|questions
j
Is it possible to use the anthropic messages api with bedrock instead of the completion api? So bedrock:messages:anthropic.claude… instead of bedrock:completion:anthropic.claude… The new claude 3 models are only available on the messages api not completion.
i
Support was just added for this in 0.49.0
j
thank you!
getting an API call error: ValidationException: The provided model identifier is invalid
copy pasted the example file, only claude instant works
okay fixed it! needed the :completion in there for claude 3
i
Hmm, does that mean the example is wrong? Could've sworn I ran it locally and had it working
j
i added the completion api to the string so bedrock:completion:anthropic … instead of bedrock:anthropic
love this library btw this is really great
i
thanks!
I fixed the bug that required
completion
btw - thanks for pointing that out, fix will be in the next release