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
show advanced options for Ollama model
Forhad Hosain78afe15990ec
diff --git a/packages/app/src/builder-ui/components/GenAILLM.class.ts b/packages/app/src/builder-ui/components/GenAILLM.class.tsindex 027318df..cb706bb3 100644--- a/packages/app/src/builder-ui/components/GenAILLM.class.ts+++ b/packages/app/src/builder-ui/components/GenAILLM.class.ts@@ -516,7 +516,7 @@ export class GenAILLM extends Component {cls: 'mb-0',attributes: {'data-supported-models':- 'OpenAI,Anthropic,GoogleAI,Groq,xAI,TogetherAI,VertexAI,Bedrock,Perplexity,cohere',+ 'OpenAI,Anthropic,GoogleAI,Groq,xAI,TogetherAI,VertexAI,Bedrock,Perplexity,cohere,Ollama',},section: 'Advanced',help: 'The total context window size includes both the request prompt length and output completion length.',@@ -550,7 +550,7 @@ export class GenAILLM extends Component {validateMessage: `Allowed range 0 to ${maxTemperature}`,attributes: {'data-supported-models':- 'OpenAI,Anthropic,GoogleAI,Groq,xAI,TogetherAI,VertexAI,Bedrock,Perplexity,cohere',+ 'OpenAI,Anthropic,GoogleAI,Groq,xAI,TogetherAI,VertexAI,Bedrock,Perplexity,cohere,Ollama','data-excluded-models': [...this.anthropicThinkingModels,...this.gpt5Models,@@ -575,7 +575,7 @@ export class GenAILLM extends Component {validateMessage: `Allowed range ${minMaxTokens} to ${allowedCompletionTokens}`,attributes: {'data-supported-models':- 'OpenAI,Anthropic,GoogleAI,Groq,xAI,TogetherAI,VertexAI,Bedrock,Perplexity,cohere',+ 'OpenAI,Anthropic,GoogleAI,Groq,xAI,TogetherAI,VertexAI,Bedrock,Perplexity,cohere,Ollama',},section: 'Advanced',help: 'Limit reply length to manage cost and avoid cutoffs. <a href="https://smythos.com/docs/agent-studio/components/base/gen-ai-llm/?utm_source=studio&utm_medium=tooltip&utm_campaign=genai-llm&utm_content=context-window-size#step-4-configure-advanced-settings" target="_blank" class="text-blue-600 hover:text-blue-800">See token limits</a>',@@ -589,7 +589,7 @@ export class GenAILLM extends Component {value: '',attributes: {'data-supported-models':- 'OpenAI,Anthropic,GoogleAI,Groq,TogetherAI,VertexAI,Bedrock,cohere',+ 'OpenAI,Anthropic,GoogleAI,Groq,TogetherAI,VertexAI,Bedrock,cohere,Ollama','data-excluded-models': [...this.gpt5Models,...this.gptO3andO4Models,@@ -614,7 +614,7 @@ export class GenAILLM extends Component {validateMessage: `Allowed range ${minTopP} to ${maxTopP}`,attributes: {'data-supported-models':- 'OpenAI,Anthropic,GoogleAI,Groq,xAI,TogetherAI,VertexAI,Bedrock,Perplexity,cohere',+ 'OpenAI,Anthropic,GoogleAI,Groq,xAI,TogetherAI,VertexAI,Bedrock,Perplexity,cohere,Ollama','data-excluded-models': [...this.openaiReasoningModels,...this.gpt5Models,@@ -639,7 +639,7 @@ export class GenAILLM extends Component {validate: `min=${minTopK} max=${maxTopK}`,validateMessage: `Allowed range ${minTopK} to ${maxTopK}`,attributes: {- 'data-supported-models': 'GoogleAI,VertexAI,Anthropic,TogetherAI,Perplexity,cohere',+ 'data-supported-models': 'GoogleAI,VertexAI,Anthropic,TogetherAI,Perplexity,cohere,Ollama,xAI,Groq','data-excluded-models': this.anthropicThinkingModels.join(','),},section: 'Advanced',@@ -657,7 +657,7 @@ export class GenAILLM extends Component {validate: `min=0 max=${maxFrequencyPenalty}`,validateMessage: `Allowed range 0 to ${maxFrequencyPenalty}`,attributes: {- 'data-supported-models': 'OpenAI,TogetherAI,Perplexity,cohere',+ 'data-supported-models': 'OpenAI,TogetherAI,Perplexity,cohere,Ollama','data-excluded-models': [...this.gpt5Models,...this.gptO3andO4Models,@@ -679,7 +679,7 @@ export class GenAILLM extends Component {validate: `min=0 max=${maxPresencePenalty}`,validateMessage: `Allowed range 0 to ${maxPresencePenalty}`,attributes: {- 'data-supported-models': 'OpenAI,Perplexity,cohere',+ 'data-supported-models': 'OpenAI,Perplexity,cohere,Ollama','data-excluded-models': [...this.gpt5Models,...this.gptO3andO4Models,@@ -714,7 +714,7 @@ export class GenAILLM extends Component {value: false,attributes: {'data-supported-models':- 'OpenAI,Anthropic,GoogleAI,Groq,xAI,TogetherAI,VertexAI,Bedrock,cohere,Echo',+ 'OpenAI,Anthropic,GoogleAI,Groq,xAI,TogetherAI,VertexAI,Bedrock,cohere,Ollama,Echo',}, // TODO: After implementing stream request with Perplexity, we can say 'all' for the supported modelshelp: 'Stream the response live to chat, or turn off for batch runs. <a href="https://smythos.com/docs/agent-studio/components/base/gen-ai-llm/?utm_source=studio&utm_medium=tooltip&utm_campaign=genai-llm&utm_content=passthrough#step-4-configure-advanced-settings" target="_blank" class="text-blue-600 hover:text-blue-800">See passthrough details</a>',section: 'Advanced',@@ -729,7 +729,7 @@ export class GenAILLM extends Component {value: false,attributes: {'data-supported-models':- 'OpenAI,Anthropic,GoogleAI,Groq,xAI,TogetherAI,VertexAI,Bedrock,cohere',+ 'OpenAI,Anthropic,GoogleAI,Groq,xAI,TogetherAI,VertexAI,Bedrock,cohere,Ollama',}, // TODO: After implementing stream request with Perplexity, we can say 'all' for the supported modelshelp: 'Apply the agent\'s rules and tone to this call for consistency.',section: 'Advanced',@@ -742,7 +742,7 @@ export class GenAILLM extends Component {value: false,attributes: {'data-supported-models':- 'OpenAI,Anthropic,GoogleAI,Groq,xAI,TogetherAI,VertexAI,Bedrock,cohere',+ 'OpenAI,Anthropic,GoogleAI,Groq,xAI,TogetherAI,VertexAI,Bedrock,cohere,Ollama',}, // TODO: After implementing stream request with Perplexity, we can say 'all' for the supported modelshelp: 'Include recent chat history when responses depend on prior turns.',section: 'Advanced',diff --git a/packages/app/src/builder-ui/params/LLM.params.json b/packages/app/src/builder-ui/params/LLM.params.jsonindex 045cf01d..9d9c3021 100644--- a/packages/app/src/builder-ui/params/LLM.params.json+++ b/packages/app/src/builder-ui/params/LLM.params.json@@ -306,5 +306,33 @@"presencePenalty": "","maxThinkingTokens": ""}+ },+ "ollama": {+ "defaultTemperature": 0.8,+ "maxTemperature": 2,+ "minMaxTokens": 1,+ "defaultMaxTokens": 128,+ "defaultThinkingTokens": 128,+ "defaultTopP": 0.9,+ "minTopP": 0,+ "maxTopP": 1,+ "defaultTopK": 40,+ "minTopK": 1,+ "maxTopK": 100,+ "defaultFrequencyPenalty": 1.1,+ "defaultPresencePenalty": 0,+ "maxFrequencyPenalty": 2,+ "maxPresencePenalty": 2,+ "maxStopSequences": 4,+ "hint": {+ "temperature": "Controls randomness in the response. Higher values make the output more creative and random, while lower values make it more focused and deterministic. Default: 0.8",+ "maxTokens": "The maximum number of tokens to predict. Set to -1 for unlimited generation or -2 to fill the context. Default: 128 tokens (one token is roughly 4 characters of English text)",+ "stopSequences": "Custom text sequences that will cause the model to stop generating when encountered.",+ "topP": "Controls diversity via nucleus sampling (0-1). Lower values make the output more focused, while higher values make it more diverse. Default: 0.9",+ "topK": "Limits the number of tokens considered at each step to reduce nonsensical outputs. Higher values allow more diversity. Default: 40",+ "frequencyPenalty": "Repeat penalty strength to prevent repetition. Values greater than 1.0 penalize repeated tokens more strongly. Default: 1.1",+ "presencePenalty": "",+ "maxThinkingTokens": ""+ }}}