diff --git a/docs/docs/tutorials/deployment/index.md b/docs/docs/tutorials/deployment/index.md index 20f4f2293b..a8527a6f56 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()