ai-lab-bridge 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -795,7 +795,8 @@ function startSession(message) {
|
|
|
795
795
|
} else if (cli === "qwen") {
|
|
796
796
|
// qwen 0.24+ 与 claude 同源(实测 0.24.6 stream-json 格式兼容),启动参数使用 qwen 自己的
|
|
797
797
|
// --approval-mode(5 档:plan/default/auto-edit/auto/yolo),不复用 claude 的 --permission-mode
|
|
798
|
-
|
|
798
|
+
// 注意:不能带 --verbose(那是 Claude Code 的参数,qwen 会报 Unknown argument 并退出 1)
|
|
799
|
+
argv = [cli, ["-p", "--output-format", "stream-json"]];
|
|
799
800
|
if (sessionRef) argv[1].push("--resume", sessionRef);
|
|
800
801
|
if (options.permission_mode) argv[1].push("--approval-mode", String(options.permission_mode));
|
|
801
802
|
if (options.model) argv[1].push("--model", String(options.model));
|