fix(saas): remove hardcoded model fallback — dynamic from available models
Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled

- service.rs: template model passed as-is (Option<String>), no hardcoded fallback
- saas-types.ts: AgentConfigFromTemplate.model → string | null
- agentStore.ts: when model is null, resolve from saasStore.availableModels[0]
- AgentOnboardingWizard.tsx: restore full file (was corrupted), apply assignTemplate try/catch fix
This commit is contained in:
iven
2026-04-03 21:38:15 +08:00
parent 2ceeeaba3d
commit 4281ce35b4
3 changed files with 763 additions and 3 deletions

View File

@@ -472,7 +472,7 @@ export interface AssignTemplateRequest {
* capabilities are merged into tools (no separate field). */
export interface AgentConfigFromTemplate {
name: string;
model: string;
model: string | null;
system_prompt?: string;
tools: string[];
soul_content?: string;