Conversation
Owner
Author
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.
为 OpenCode 模型增加独立的输入/输出能力编辑器,支持文本、图片、音频、视频、PDF。明确区分未声明(继承)、空列表(声明不支持)和已勾选类型。写入原生 modalities.input/output,清除某方向覆盖时保留另一方向及其他模型字段。
基于 #27。配置字段核对官方 schema:https://opencode.ai/config.json 。这只是模型能力声明,不新增音频、视频、PDF 的跨协议转换。
验证:25 个真实命令模块 harness 测试、TypeScript、826 个契约断言通过。新回归覆盖全部五类、空列表、撤销声明、独立输出保留、未知字段保留和非法类型拒绝。桌面 GUI 与 Windows 原生未执行。
2026-09-23 repair verification
c1cea5eb73f9f2fadc15e8a50b7179631f5f398c.