-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Conversation
|
||
const wrappedLanguageModel = wrapLanguageModel({ | ||
model: yourModel, | ||
middleware: extractReasoningMiddleware({ tagName: 'think' }), |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
?
No description provided.