This commit is contained in:
ZacharyZhang-NY committed 2026-03-30 16:24:29 -04:00
1 parent 400417a6af
commit aed312124b
8 files changed
+38 -30

No files matched your search

@@ -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);
}