Conversation
FetchModels 的发现范围改为所有 agents 引用模型的并集:比只读 cli 预设更全(覆盖其他 agent 引用的新模型,上游改 agent 名称不会整体失败),又比整份 models 目录更准(目录混有上代退役模型和图像等非聊天模型,不应暴露给聊天客户端)。models 目录仅作元数据来源;agents 引用但目录暂无元数据的模型(如 lite)保留 ID 返回;agents 整体为空时兜底退回目录启用模型。
coolxll
force-pushed
the
codex/-coolxll/workbuddy2api
branch
from
September 11, 2026 08:56
88d791c to
cace384
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.
修正模型发现逻辑:
已通过
go test ./...。