diff --git a/dsp/modules/anthropic.py b/dsp/modules/anthropic.py index 0c4cd2e089..c343e2a2ad 100644 --- a/dsp/modules/anthropic.py +++ b/dsp/modules/anthropic.py @@ -62,7 +62,7 @@ def __init__( } self.kwargs["model"] = model self.history: list[dict[str, Any]] = [] - self.client = Anthropic(api_key=api_key) + self.client = Anthropic(api_key=api_key, base_url=api_base) def log_usage(self, response): """Log the total tokens from the Anthropic API response."""