-
-
Notifications
You must be signed in to change notification settings - Fork 12.1k
[fix] fix seed-oss-parser #23560
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
[fix] fix seed-oss-parser #23560
Conversation
Signed-off-by: jiabin.00 <jiabin.00@bytedance.com>
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.
Code Review
This pull request addresses a critical bug in the seed-oss-parser. Previously, an UnboundLocalError would occur in extract_tool_calls if the model output did not contain <seed:think> tags, as result_content and thinking_content variables would not be initialized. The fix correctly handles this scenario by adding an else block to initialize these variables. The corresponding test case has been updated to validate this fix by removing the thinking tags from the model output. The changes are correct and effectively resolve the issue.
Signed-off-by: jiabin.00 <jiabin.00@bytedance.com> Signed-off-by: tc-mb <caitianchi@modelbest.cn>
Signed-off-by: jiabin.00 <jiabin.00@bytedance.com>
Signed-off-by: jiabin.00 <jiabin.00@bytedance.com> Signed-off-by: Xiao Yu <xiao.yu@amd.com>
Signed-off-by: jiabin.00 <jiabin.00@bytedance.com>
Signed-off-by: jiabin.00 <jiabin.00@bytedance.com>
Signed-off-by: jiabin.00 <jiabin.00@bytedance.com>
Purpose
fix seed-oss-parser
Test Plan
Test Result
(Optional) Documentation Update
Essential Elements of an Effective PR Description Checklist
supported_models.mdandexamplesfor a new model.