Skip to content

Commit

Permalink
Merge pull request stanfordnlp#547 from ragul-kachiappan-dev/main
Browse files Browse the repository at this point in the history
fix: printing signature fields in verbose mode for signature_opt
  • Loading branch information
arnavsinghvi11 authored Mar 5, 2024
2 parents 08dd4e9 + c2737f6 commit 58030c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dspy/teleprompt/signature_opt.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def _print_signature(self, predictor):
else:
signature = predictor.extended_signature1
print(f"i: {signature.instructions}")
print(f"p: {list(signature.fields().values())[-1].json_schema_extra['prefix']}")
print(f"p: {list(signature.fields.values())[-1].json_schema_extra['prefix']}")
print()


Expand Down

0 comments on commit 58030c9

Please sign in to comment.