SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.
JavaScript a2aagentic-aiai-agentsdevtoolsmcp-clientn8n-alternativeno-codeopen-sourceorchestrationsmythosvisual-builder
Refactor maxOutputTokens assignment in userCustomModelService for clarity
Muhammad Hamza Khan4a608ba39961
diff --git a/packages/app/src/react/features/vault/vault-business-logic.ts b/packages/app/src/react/features/vault/vault-business-logic.tsindex 660bec78..3af71967 100644--- a/packages/app/src/react/features/vault/vault-business-logic.ts+++ b/packages/app/src/react/features/vault/vault-business-logic.ts@@ -361,8 +361,6 @@ export const userCustomModelService = {provider: value.provider,// Check for new field name first, then fall back to old field namecontextWindow: value.contextWindow !== undefined ? value.contextWindow : value.tokens,- maxOutputTokens:- value.maxOutputTokens !== undefined ? value.maxOutputTokens : value.completionTokens,maxOutputTokens:value.maxOutputTokens !== undefined ? value.maxOutputTokens : value.completionTokens,fallbackLLM: value.fallbackLLM || '', // Provide default empty string for backward compatibility with cached data