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 没有支持 Responses 的 SDK,因此界面选择 Responses 后保存被拒绝。
本 PR 将 Responses 映射到 @ai-sdk/openai,并支持读回该协议;Chat Completions 继续使用 @ai-sdk/openai-compatible。移除 command 层的一概拒绝;未知 SDK 在未编辑协议时仍保留。
依据:OpenCode SDK 使用;AI SDK OpenAI provider 默认使用 Responses。
验证:21 个实际 command 模块测试通过(独立 Rust harness,去除 tauri::command 标记),覆盖 Responses 保存/读回及随后切换 Chat Completions。未调用付费模型 API,也未完成桌面原生验证,保持 draft。独立基于 main。
2026-09-23 repair verification
c349598b38169befdfb3bb6f12ef63cf73d70023.