DSPy: The framework for programming—not prompting—language models
Python
Apply ruff fix
Isaac Miller89036644d457
diff --git a/dsp/modules/__init__.py b/dsp/modules/__init__.pyindex 06e1d6f07..fdf59eabc 100644--- a/dsp/modules/__init__.py+++ b/dsp/modules/__init__.py@@ -1,3 +1,4 @@+from .anthropic import Claudefrom .azure_openai import AzureOpenAIfrom .bedrock import *from .cache_utils import *@@ -13,4 +14,3 @@ from .ollama import *from .pyserini import *from .sbert import *from .sentence_vectorizer import *-from .anthropic import Claudediff --git a/dsp/modules/anthropic.py b/dsp/modules/anthropic.pyindex 859e43665..68f30ce7a 100644--- a/dsp/modules/anthropic.py+++ b/dsp/modules/anthropic.py@@ -1,10 +1,10 @@+import loggingimport os+from typing import Any, Optional+import backoff-import json-from typing import Optional, Anyfrom dsp.modules.lm import LM-import loggingtry:import anthropic@@ -41,7 +41,7 @@ class Claude(LM):model: str = "claude-instant-1.2",api_key: Optional[str] = None,api_base: Optional[str] = None,- **kwargs+ **kwargs,):super().__init__(model)