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
add reasoning effort field for Gemini 3 model
Forhad Hosain52f0ab7ff7bc
diff --git a/packages/app/src/builder-ui/components/GenAILLM.class.ts b/packages/app/src/builder-ui/components/GenAILLM.class.tsindex 88c25467..24672bc6 100644--- a/packages/app/src/builder-ui/components/GenAILLM.class.ts+++ b/packages/app/src/builder-ui/components/GenAILLM.class.ts@@ -1476,7 +1476,7 @@ export class GenAILLM extends Component {) as HTMLElement;const reasoningOptions = this.getReasoningEffortOptions(currentModel);- // Handle reasoning effort field visibility for both GPT-5 and Groq models+ // Handle reasoning effort field visibility for GPT-5, Groq, and Gemini 3 modelsif (reasoningOptions.length > 0) {if (this.gpt5ReasoningModels.includes(currentModel)) {// For GPT-5 models: Always show reasoningEffort regardless of useReasoning state@@ -1485,6 +1485,13 @@ export class GenAILLM extends Component {}// Update reasoning effort optionsthis.updateReasoningEffortOptions(currentModel);+ } else if (LLMRegistry.isGemini3Model(currentModel)) {+ // For Gemini 3 models: Always show reasoningEffort regardless of useReasoning state+ if (reasoningEffortField) {+ reasoningEffortField.classList.remove('hidden');+ }+ // Update reasoning effort options+ this.updateReasoningEffortOptions(currentModel);} else if (this.groqReasoningModels.includes(currentModel)) {// For Groq reasoning models: Only show when useReasoning is checkedif (reasoningEffortField) {diff --git a/packages/app/src/builder-ui/constants.ts b/packages/app/src/builder-ui/constants.tsindex 69536589..ce225581 100644--- a/packages/app/src/builder-ui/constants.ts+++ b/packages/app/src/builder-ui/constants.ts@@ -14,6 +14,16 @@ export enum LLM_PROVIDERS {export const COMPONENT_STATE_KEY = 'component:state';export const REASONING_EFFORTS = [+ {+ // Gemini 3 models support 'low' and 'high' reasoning effort+ // 'medium' is coming soon but not available at launch+ pattern: /^(gemini-3|smythos\/gemini-3)/i,+ options: [+ { text: 'Low', value: 'low' },+ // { text: 'Medium', value: 'medium' }, // Coming soon, will be enabled when released+ { text: 'High', value: 'high' },+ ],+ },{// GPT-5-pro only supports 'high' reasoning effortpattern: /^(gpt-5-pro|smythos\/gpt-5-pro)/i,diff --git a/packages/app/src/shared/services/LLMRegistry.service.ts b/packages/app/src/shared/services/LLMRegistry.service.tsindex 11facba1..1dcc14d5 100644--- a/packages/app/src/shared/services/LLMRegistry.service.ts+++ b/packages/app/src/shared/services/LLMRegistry.service.ts@@ -29,6 +29,7 @@ export class LLMRegistry {// Single source of truth for determining GPT5 models (verbosity + reasoning effort support)private static readonly GPT5_MODEL_PATTERN = /gpt-5/i;private static readonly O3_AND_O4_MODELS_PATTERN = /o3|o4/i;+ private static readonly GEMINI3_MODEL_PATTERN = /gemini-3/i;public static getModels(): Record<string, LLMModel> {const models = llmModelsStore.getState()?.models || {};@@ -335,4 +336,24 @@ export class LLMRegistry {public static isO3andO4Models(modelId: string): boolean {return Boolean(modelId && this.O3_AND_O4_MODELS_PATTERN.test(modelId));}++ /**+ * Get all Gemini 3 models based on model name pattern matching+ *+ * @returns Array of model IDs that match the Gemini 3 pattern (case-insensitive)+ */+ public static getGemini3Models(): string[] {+ const models = this.getModels();+ return Object.keys(models).filter((modelId) => this.isGemini3Model(modelId));+ }++ /**+ * Check if a model is a Gemini 3 model based on its name pattern+ *+ * @param modelId - The model ID to check+ * @returns True if the model ID matches the Gemini 3 pattern (case-insensitive), false otherwise+ */+ public static isGemini3Model(modelId: string): boolean {+ return Boolean(modelId && this.GEMINI3_MODEL_PATTERN.test(modelId));+ }}