DSPy: The framework for programming—not prompting—language models
Python
fix mlflow deploy doc example (#8275)
TomuHirata6270e951b1f2
diff --git a/docs/docs/tutorials/deployment/index.md b/docs/docs/tutorials/deployment/index.mdindex 20f4f2293..a8527a6f5 100644--- a/docs/docs/tutorials/deployment/index.md+++ b/docs/docs/tutorials/deployment/index.md@@ -170,8 +170,8 @@ class MyProgram(dspy.Module):super().__init__()self.cot = dspy.ChainOfThought("question -> answer")- def forward(self, question):- return self.cot(question=question)+ def forward(self, messages):+ return self.cot(question=messages[0]["content"])dspy_program = MyProgram()