update
This commit is contained in:
1 parent
400417a6af
commit
aed312124b
8 files changed
+38
-30
No files matched your search
@@ -347,7 +347,7 @@ export function createOrchestrationService({
|
||||
workspacePath: workspace?.localPath ?? null,
|
||||
workspaceMode,
|
||||
command: connector.command,
|
||||
model: connector.model ?? agent.model,
|
||||
model: agent.model,
|
||||
thinkingEffort,
|
||||
env,
|
||||
sessionParams: taskSession.sessionParams,
|
||||
|
||||
@@ -129,7 +129,7 @@ export function CompanyOnboarding({
|
||||
.catch(() => { if (!cancelled) setModelOptions([]); })
|
||||
.finally(() => { if (!cancelled) setLoadingModels(false); });
|
||||
return () => { cancelled = true; };
|
||||
}, [selectedConnectorId]);
|
||||
}, [selectedConnectorId, connectors]);
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
/* Provider callbacks (for ProvidersStep) */
|
||||
|
||||
@@ -245,7 +245,14 @@ function CompatProviderCard({
|
||||
if (apiKey.trim()) lines.push(`ANTHROPIC_API_KEY=${apiKey.trim()}`);
|
||||
if (baseUrl.trim()) lines.push(`ANTHROPIC_BASE_URL=${baseUrl.trim()}`);
|
||||
const label = COMPATIBLE_PROVIDERS.find((p) => p.id === selectedProvider)?.label ?? "";
|
||||
const modelsCsv = models.join(",") || null;
|
||||
const allModels = [...models];
|
||||
const pending = newModel.trim();
|
||||
if (pending && !allModels.includes(pending)) {
|
||||
allModels.push(pending);
|
||||
setModels(allModels);
|
||||
setNewModel("");
|
||||
}
|
||||
const modelsCsv = allModels.join(",") || null;
|
||||
onSaveConnector(slotId, lines.join("\n"), modelsCsv, label);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user