



























@@ -585,6 +585,14 @@ async function runFreshLane(params) {
585585logPath: join(params.logsDir, "fresh-onboard.log"),
586586});
587587588+logLanePhase(lane, "models-set");
589+await runModelsSet({
590+ lane,
591+ env,
592+providerConfig: params.providerConfig,
593+logPath: join(params.logsDir, "fresh-models-set.log"),
594+});
595+588596logLanePhase(lane, "start-gateway");
589597const gateway = await startGateway({
590598 lane,
@@ -606,14 +614,6 @@ async function runFreshLane(params) {
606614logPath: join(params.logsDir, "fresh-dashboard.log"),
607615});
608616609-logLanePhase(lane, "models-set");
610-await runModelsSet({
611- lane,
612- env,
613-providerConfig: params.providerConfig,
614-logPath: join(params.logsDir, "fresh-models-set.log"),
615-});
616-617617logLanePhase(lane, "agent-turn");
618618const agent = await runAgentTurn({
619619 lane,
@@ -720,6 +720,14 @@ async function runUpgradeLane(params) {
720720logPath: join(params.logsDir, "upgrade-onboard.log"),
721721});
722722723+logLanePhase(lane, "models-set");
724+await runModelsSet({
725+ lane,
726+ env,
727+providerConfig: params.providerConfig,
728+logPath: join(params.logsDir, "upgrade-models-set.log"),
729+});
730+723731logLanePhase(lane, "start-gateway");
724732const gateway = await startGateway({
725733 lane,
@@ -741,14 +749,6 @@ async function runUpgradeLane(params) {
741749logPath: join(params.logsDir, "upgrade-dashboard.log"),
742750});
743751744-logLanePhase(lane, "models-set");
745-await runModelsSet({
746- lane,
747- env,
748-providerConfig: params.providerConfig,
749-logPath: join(params.logsDir, "upgrade-models-set.log"),
750-});
751-752752logLanePhase(lane, "agent-turn");
753753const agent = await runAgentTurn({
754754 lane,
@@ -837,6 +837,15 @@ async function runInstallerFreshSuite(params) {
837837});
838838}
839839840+logLanePhase(lane, "models-set");
841+await runInstalledModelsSet({
842+cliPath: freshShell.cliPath,
843+ env,
844+providerConfig: params.providerConfig,
845+cwd: lane.homeDir,
846+logPath: join(params.logsDir, "installer-fresh-models-set.log"),
847+});
848+840849if (!useManagedGatewayAfterInstall) {
841850// Keep the Windows installer lane validating Scheduled Task registration during
842851// onboarding and lifecycle commands, but use a manual gateway for the runtime
@@ -884,15 +893,6 @@ async function runInstallerFreshSuite(params) {
884893logPath: join(params.logsDir, "installer-fresh-dashboard.log"),
885894});
886895887-logLanePhase(lane, "models-set");
888-await runInstalledModelsSet({
889-cliPath: freshShell.cliPath,
890- env,
891-providerConfig: params.providerConfig,
892-cwd: lane.homeDir,
893-logPath: join(params.logsDir, "installer-fresh-models-set.log"),
894-});
895-896896logLanePhase(lane, "agent-turn");
897897const agent = await runInstalledAgentTurn({
898898cliPath: freshShell.cliPath,
@@ -1023,6 +1023,15 @@ async function runDevUpdateSuite(params) {
10231023logPath: join(params.logsDir, "dev-update-onboard.log"),
10241024});
102510251026+logLanePhase(lane, "models-set");
1027+await runInstalledModelsSet({
1028+cliPath: verifiedShell.cliPath,
1029+ env,
1030+providerConfig: params.providerConfig,
1031+cwd: lane.homeDir,
1032+logPath: join(params.logsDir, "dev-update-models-set.log"),
1033+});
1034+10261035if (!useManagedGatewayAfterDevUpdate) {
10271036logLanePhase(lane, "gateway-start");
10281037const gateway = await startManualGatewayFromInstalledCli({
@@ -1056,15 +1065,6 @@ async function runDevUpdateSuite(params) {
10561065logPath: join(params.logsDir, "dev-update-dashboard.log"),
10571066});
105810671059-logLanePhase(lane, "models-set");
1060-await runInstalledModelsSet({
1061-cliPath: verifiedShell.cliPath,
1062- env,
1063-providerConfig: params.providerConfig,
1064-cwd: lane.homeDir,
1065-logPath: join(params.logsDir, "dev-update-models-set.log"),
1066-});
1067-10681068logLanePhase(lane, "agent-turn");
10691069const agent = await runInstalledAgentTurn({
10701070cliPath: verifiedShell.cliPath,
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。