Skip to content

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
Collaborator

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
Collaborator

@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.

3 participants