dspy
dspy copied to clipboard
DSPy framework and support for AWS BedRock
trafficstars
hi,
Can someone please let me know whether DSPy framework support models hosted on AWS Bedrock? And can I use dspy.OpenAI() for Bedrock as well? It would be really great if someone can share me an example of dspy.OpenAI() with bedrock endpoint.
Hi @deepuak ,
DSPy supports AWS Bedrock! Check out dspy.Bedrock and the underlying AWSLM class.
You can use this directly dspy.Bedrock(region_name=..., model=..., ...) instead of dspy.OpenAI().
thank you!
Documentation - DSPy AWS Provider