Repository navigation
feat(llm): 接入官方 ChatGPT 计划登录渠道 - #1247
Merged
Merged
Conversation
Initialize the optional SIWC state in existing provider editor fixtures. Restore unrelated Less Computer formatting required by its existing contract test.
H-Chris233
marked this pull request as ready for review
October 21, 2026 12:14
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.
摘要
关联 #1243。
新增独立的
chatgpt_siwc(ChatGPT Plan)文本渠道,由共享 Rust Core 完成官方 Sign in with ChatGPT 认证、模型发现和 Responses 推理,并接入 Windows、macOS、Linux、Android、鸿蒙宿主。当前为 Draft:本地 mock 与跨平台 CI 已通过,五平台真实账号及设备验收尚未完成。
修复 / 新增 / 改进
/v1/models保留服务端可见模型顺序,显示名称与 slug 分离,无硬编码默认模型。/v1/responses固定端点、认证和字段白名单,强制store:false、stream:true;所有文本入口底层消费 SSE,仅response.completed成功。兼容
ProviderModelsResult.models: string[]接口。测试计划
以下为本地执行结果,Rust 检查使用 1.99.0;工作目录为
openless-all/app。已通过
cargo +1.99.0 test --locked -p openless-core --lib siwc:26 项通过,覆盖 OAuth mock/JWKS、注册隔离、刷新/注销竞争、取消及 SSE 等。cargo +1.99.0 test --locked --manifest-path src-tauri/backend-tests/Cargo.toml:48 项通过,1 项忽略。cargo +1.99.0 test --locked -p openless-harmony-host --lib:4 项通过;执行环境为 Windows,不代表鸿蒙设备或 HAP 验证。cargo check。aarch64-linux-android、x86_64-linux-android两目标cargo check;不是完整 APK 构建或设备验收。npm run build(含 TypeScript 检查及 prebuild 契约测试)。node scripts/harmony-siwc.test.mjs、node scripts/siwc-host-contract.test.mjs。e2e/siwc.spec.ts:2 项通过,覆盖登录/取消、模型选择、主动连接测试、额度提示主操作、断开连接、390px 窄屏和键盘操作;已检查桌面/窄屏实际截图。git diff --cached --check。证据与可复现用例:
crates/openless-core/src/siwc/tests.rs、e2e/siwc.spec.ts、scripts/harmony-siwc.test.mjs、scripts/siwc-host-contract.test.mjs。本地构建日志和截图未纳入提交。CI 复验(2026-10-21,
2f8b470e)PR CI #39594463544、push CI #39594457807 和 Native capsule #39594463524 均已成功完成。
OpenLess_harmony_arm64.hap。本次 CI 修复补齐三个 Linux 旧夹具的
siwc: None,恢复触发既有契约断言的无关链式调用格式,并把siwc_editor原样移至测试模块之前。未放宽断言或关闭 Clippy;本地从原失败点起的 109 个前端测试文件通过。已知未通过 / 未完成
experimental_asr::tests::optional_runtime_files_are_not_download_progress在 Windows 报拒绝访问 (os error 5),单独运行仍复现;不将该全量运行报告为通过。scripts/ci-cache-usage.test.mjs中因 WSL 无/bin/bash、随后缺少deleted.tsv而中断;未为此改动无关测试。本轮没有使用真实账号发起授权或订阅额度推理,也没有发布安装包。