From 92a07d2a299be3ee8d45a32ccf153a1915aa1747 Mon Sep 17 00:00:00 2001 From: TomuHirata Date: Mon, 26 May 2025 16:03:49 +0900 Subject: [PATCH] fix doc example --- docs/docs/tutorials/deployment/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()