DSPy: The framework for programming—not prompting—language models
Python
Remove dsp modifications
dilara56d64df02d47
diff --git a/dsp/modules/__init__.py b/dsp/modules/__init__.pyindex e1caa9428..cd3e53b03 100644--- a/dsp/modules/__init__.py+++ b/dsp/modules/__init__.py@@ -1,5 +1,6 @@from .anthropic import Claudefrom .aws_models import AWSAnthropic, AWSMeta, AWSMistral, AWSModel+# Below is obsolete. It has been replaced with Bedrock class in dsp/modules/aws_providers.py# from .bedrock import *from .aws_providers import Bedrock, Sagemakerdiff --git a/dsp/modules/lm.py b/dsp/modules/lm.pyindex d6c0b8681..e06962a63 100644--- a/dsp/modules/lm.py+++ b/dsp/modules/lm.py@@ -1,9 +1,4 @@from abc import ABC, abstractmethod-from concurrent.futures import ThreadPoolExecutor, Future-from copy import deepcopy-from enum import Enum-from typing import Optional, Union, List-import ujsonclass LM(ABC):diff --git a/dspy/__init__.py b/dspy/__init__.pyindex 95b20e7a2..0c9348641 100644--- a/dspy/__init__.py+++ b/dspy/__init__.py@@ -73,4 +73,4 @@ Ensemble = dspy.teleprompt.Ensemble# TODO: Consider if this should access settings.lm *or* a list that's shared across all LMs in the program.def inspect_history(*args, **kwargs):- return settings.lm.inspect_history(*args, **kwargs)+ return settings.lm.inspect_history(*args, **kwargs)\ No newline at end of file