We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c68c08 commit 6270e95Copy full SHA for 6270e95
docs/docs/tutorials/deployment/index.md
@@ -170,8 +170,8 @@ class MyProgram(dspy.Module):
170
super().__init__()
171
self.cot = dspy.ChainOfThought("question -> answer")
172
173
- def forward(self, question):
174
- return self.cot(question=question)
+ def forward(self, messages):
+ return self.cot(question=messages[0]["content"])
175
176
dspy_program = MyProgram()
177
0 commit comments