Skip to content

armgit / dspy

Public Imported from GitHub
0

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

Python

feat(dspy): follow same pattern as other uses of DSPDummyLM

Michael Jones11006587a48b
diff --git a/tests/dsp_LM/predict/test_react.py b/tests/dsp_LM/predict/test_react.py
index e3f11d438..37979ddbc 100644
--- a/tests/dsp_LM/predict/test_react.py
+++ b/tests/dsp_LM/predict/test_react.py
@@ -1,12 +1,12 @@
from dataclasses import dataclass
import dspy
-from dspy.utils.dummies import dummy_rm
+from dspy.utils.dummies import DSPDummyLM, dummy_rm
def test_example_no_tools():
- # Createa a simple dataset which the model will use with the Retrieve tool.
- lm = dspy.utils.DspDummyLM(
+ # Create a simple dataset which the model will use with the Retrieve tool.
+ lm = DSPDummyLM(
[
"Initial thoughts", # Thought_1
"Finish[blue]", # Action_1
@@ -38,7 +38,7 @@ def test_example_no_tools():
def test_example_search():
# Createa a simple dataset which the model will use with the Retrieve tool.
- lm = dspy.utils.DspDummyLM(
+ lm = DSPDummyLM(
[
"Initial thoughts", # Thought_1
"Search[the color of the sky]", # Thought_1
@@ -118,7 +118,7 @@ class DummyTool2:
def test_custom_tools():
- lm = dspy.utils.DspDummyLM(
+ lm = DSPDummyLM(
[
"Initial thoughts",
"Tool1[foo]",