fix: Fix an exception where incomplete parameters were generated by a large model when calling the Workflow Tool in the ai-chat node, resulting in missing parameters being thrown#6175
Open
wangliang181230 wants to merge 1 commit into
Conversation
wangliang181230
commented
Jun 3, 2026
| field.get("field"): (get_type(field.get("type")), Field(..., description=field.get("desc"))) | ||
| field.get("field"): ( | ||
| get_type(field.get("type")), | ||
| Field(..., required=True, description=field.get("desc")) if field.get("is_required") else Field(..., default=None, required=False, description=field.get("desc")) |
Contributor
Author
There was a problem hiding this comment.
当 is_required 为 true 时,设置 required=True
当 is_required 为 false 时,设置 required=False, default=None
… large model when calling the `Workflow Tool` in the `ai-chat` node, resulting in missing parameters being thrown
8558760 to
82f93b5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it?
fix: Fix an exception where incomplete parameters were generated by a large model when calling the
Workflow Toolin theai-chatnode, resulting in missing parameters being thrown修复在
ai-chat节点调用工作流工具时,大型模型生成不完整参数导致抛出缺失参数的异常fixes #6172
Summary of your change
Please indicate you've done the following: