Repository navigation
修复 [DeepSeek 联网搜索] 工具描述超长导致导入失败 - #137
Merged
hao65103940 merged 1 commit intoOct 19, 2026
Merged
Conversation
✅ PR 自动校验结果状态: 校验通过 |
Tool.desc 在数据库中是 varchar(128),1Panel-dev#135 中的描述为 168 字符, 导入时抛 StringDataRightTruncation: value too long for type character varying(128)。 将描述压缩至 108 字符并重新生成 .tool,其余文件与 1Panel-dev#135 一致。
gzzwp
force-pushed
the
feat/tool-deepseek-search-desc-fix
branch
from
October 19, 2026 09:35
9fe6015 to
1308372
Compare
✅ PR 自动校验结果状态: 校验通过 |
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.
修复 DeepSeek 联网搜索工具描述超长
#135 已合并,但其中的工具在导入 MaxKB 时报错:
原因
Tool.desc字段在apps/tools/models/tool.py中定义为models.CharField(max_length=128),而 #135 提交的
.tool里描述为 168 字符,落库时被 PostgreSQL 拒绝。改动
1.0.0/DeepSeek联网搜索.tool验证
Tool模型的max_length约束,确认无超长字段.tool通过RestrictedUnpickler白名单反序列化自测