8000 fix:modify the default value of the extra field by ieayoio · Pull Request #1376 · dataelement/bisheng · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix:modify the default value of the extra field #1376

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

Merged
merged 1 commit into from
Jun 17, 2025

Conversation

ieayoio
Copy link
Contributor
@ieayoio ieayoio commented Jun 16, 2025

改配置为{}更合理,防止前端缺失传递参数时,造成后续的json解析错误

我们实际遇到了数据库中t_gpts_tools_type表extra字段存储''的情况,导致工作流无法正常运行,目前排查到因添加api工具时产生的错误,更新时毕昇代码中有一段如下逻辑:

tool_extra = {"api_location":req.api_location,"parameter_name":req.parameter_name}

导致该字段值变为{"api_location": null, "parameter_name": null},更新后api正常使用,工作流也变为正常

实际上这个字段既然存储json配置,我认为默认为{}更合理,可以避免参数缺失时的错误

改配置为{}更合理,防止为''时造成后续的json解析错误
@zgqgit zgqgit merged commit 94b5abd into dataelement:main Jun 17, 2025
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
0