Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dspy/adapters/types/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def serialize_model(self):
def description(cls) -> str:
return (
"Code represented in a string, specified in the `code` field. If this is an output field, the code "
"field should follow the markdown code block format, e.g. \n```python\n{code}\n``` or \n```cpp\n{code}\n```"
f"field should follow the markdown code block format, e.g. \n```{cls.language.lower()}\n{{code}}\n```"
f"\nProgramming language: {cls.language}"
)

Expand Down