Skip to content

Conversation

@TomeHirata
Copy link
Collaborator

  • Changed output type in Adapter class to support both dict and str.
  • Updated call, acall, forward, and aforward methods in BaseLM and LM classes to use more explicit type hints for prompt and messages parameters.
  • Enhanced documentation to clarify expected response formats for forward and aforward methods.

- Changed output type in Adapter class to support both dict and str.
- Updated __call__, acall, forward, and aforward methods in BaseLM and LM classes to use more explicit type hints for prompt and messages parameters.
- Enhanced documentation to clarify expected response formats for forward and aforward methods.

Signed-off-by: TomuHirata <[email protected]>
processed_signature: type[Signature],
original_signature: type[Signature],
outputs: list[dict[str, Any]],
outputs: list[dict[str, Any] | str],
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was the main motivation, we support a list of string actually

Copy link
Collaborator

@chenmoneygithub chenmoneygithub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch!

@TomeHirata TomeHirata merged commit 989de08 into stanfordnlp:main Nov 10, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants