Skip to content

armgit / dspy

Public Imported from GitHub
0

DSPy: The framework for programming—not prompting—language models

Python

Update provider name to Claude or Bedrock

VivHarsha2b2ad809c067
diff --git a/dsp/modules/bedrock.py b/dsp/modules/bedrock.py
index ac8b42d2d..02fc78a1f 100644
--- a/dsp/modules/bedrock.py
+++ b/dsp/modules/bedrock.py
@@ -34,6 +34,7 @@ class Bedrock(AWSLM):
batch_n=True, # Bedrock does not support the `n` parameter
)
self._validate_model(model)
+ self.provider = "claude" if "claude" in model.lower() else "bedrock"
def _validate_model(self, model: str) -> None:
if "claude" not in model.lower():