Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat (core): add extractReasoningMiddleware #4541

Merged
merged 14 commits into from
Jan 27, 2025
Merged

feat (core): add extractReasoningMiddleware #4541

merged 14 commits into from
Jan 27, 2025

Conversation

lgrammel
Copy link
Collaborator

No description provided.

@lgrammel lgrammel self-assigned this Jan 27, 2025
@lgrammel lgrammel changed the title Lg/m xj mpo ma feat (core): add extractReasoningMiddleware Jan 27, 2025
@lgrammel lgrammel marked this pull request as ready for review January 27, 2025 13:55

const wrappedLanguageModel = wrapLanguageModel({
model: yourModel,
middleware: extractReasoningMiddleware({ tagName: 'think' }),
Copy link
Contributor

Choose a reason for hiding this comment

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

can we show how it would be used and accessed too?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

added a note, I don't want to duplicate everywhere

Copy link
Contributor

@nicoalbanese nicoalbanese Jan 27, 2025

Choose a reason for hiding this comment

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

heard but I mean more for how you access reasoning - eg. is it await result.reasoning?

@lgrammel lgrammel merged commit 92f5f36 into main Jan 27, 2025
9 checks passed
@lgrammel lgrammel deleted the lg/mXJMpoMa branch January 27, 2025 14:20
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