Skip to content

Commit 80fa76b

Browse files
authored
fix the type of format_demos (#8049)
1 parent 1082d4d commit 80fa76b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dspy/adapters/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def format_assistant_message_content(
212212
"""
213213
raise NotImplementedError
214214

215-
def format_demos(self, signature: Type[Signature], demos: list[dict[str, Any]]) -> str:
215+
def format_demos(self, signature: Type[Signature], demos: list[dict[str, Any]]) -> list[dict[str, Any]]:
216216
"""Format the few-shot examples.
217217
218218
This method formats the few-shot examples as multiturn messages.

0 commit comments

Comments
 (0)