@wu529778790/open-im 1.7.1-beta.6 → 1.7.1-beta.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/dist/config-web-page-script.js +10 -2
- package/dist/config.js +1 -1
- package/package.json +1 -1
|
@@ -579,8 +579,16 @@ export const PAGE_SCRIPT = String.raw ` const platformDefinitions = [
|
|
|
579
579
|
|
|
580
580
|
// Service buttons
|
|
581
581
|
el("validateButton").onclick = validate;
|
|
582
|
-
el("saveButton").onclick =
|
|
583
|
-
|
|
582
|
+
el("saveButton").onclick = async () => {
|
|
583
|
+
// 先保存 JSON,再保存主配置
|
|
584
|
+
await saveClaudeSettings();
|
|
585
|
+
await save();
|
|
586
|
+
};
|
|
587
|
+
el("startButton").onclick = async () => {
|
|
588
|
+
// 启动前也顺带保存 JSON
|
|
589
|
+
await saveClaudeSettings();
|
|
590
|
+
await startService();
|
|
591
|
+
};
|
|
584
592
|
el("stopButton").onclick = stopService;
|
|
585
593
|
|
|
586
594
|
// Platform test buttons
|
package/dist/config.js
CHANGED
|
@@ -608,7 +608,7 @@ export function loadConfig() {
|
|
|
608
608
|
claudeTimeoutMs,
|
|
609
609
|
codexTimeoutMs,
|
|
610
610
|
codebuddyTimeoutMs,
|
|
611
|
-
claudeModel: process.env.CLAUDE_MODEL ?? tc.model,
|
|
611
|
+
claudeModel: process.env.CLAUDE_MODEL ?? process.env.ANTHROPIC_MODEL ?? tc.model,
|
|
612
612
|
logDir,
|
|
613
613
|
logLevel,
|
|
614
614
|
platforms,
|