Skip to content

Commit

Permalink
fix: printing signature fields in verbose mode for signature_opt
Browse files Browse the repository at this point in the history
  • Loading branch information
ragul-kachiappan-dev committed Mar 4, 2024
1 parent 01455bd commit c2737f6
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 @@ -95,7 +95,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 c2737f6

Please sign in to comment.