fix(knowledge): 修复语言模型选择后无法回显且提交为空#672
Open
guoyi8 wants to merge 1 commit intoxerrors:mainfrom
Open
Conversation
V2 模型 spec 格式为 provider_id:model_id(冒号分隔), 但 handleLLMSelect 使用斜杠拆分,导致 provider 和 model_name 均为空。 新增 model_spec 字段直接存储完整 spec,抽取 parseModelSpec/buildDisplaySpec 工具函数统一处理 V1/V2 两种格式,消除 3 处重复逻辑。
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.
Summary
provider_id:model_id(冒号分隔),但handleLLMSelect使用斜杠拆分,导致provider和model_name均为空model_spec字段直接存储完整 spec,抽取parseModelSpec/buildDisplaySpec工具函数统一处理 V1/V2 两种格式Test plan