Model Config Editor

Combined editor for AI model configuration including provider, model, temperature, and advanced parameters

SaaSAI Agents

Overview

ModelConfigEditor provides a form-based editor for configuring AI model parameters. It includes provider and model selection with auto-filtering, a temperature slider, max tokens input with model-specific hints, advanced parameters (topP, frequencyPenalty, presencePenalty), and quick presets for creative, balanced, and precise configurations.

Usage

import { ModelConfigEditor } from "@leanicon/web-builder-library/saas";

<ModelConfigEditor
  value={modelConfig}
  onChange={(config) => setModelConfig(config)}
  showAdvanced={true}
  showPresets={true}
  disabled={isSubmitting}
  errors={validationErrors}
/>;

Variants

Default

Model Configuration

Configure the AI model and its parameters for this agent.

Quick Presets

Select a preset to quickly configure common settings

Supports up to 128,000 tokens

Controls randomness. Lower = more focused, higher = more creative

Model supports up to 128,000 tokens

Advanced Parameters

Nucleus sampling threshold (0-1)

Reduce repetition (-2 to 2)

Encourage new topics (-2 to 2)

Disabled

Model Configuration

Configure the AI model and its parameters for this agent.

Quick Presets

Select a preset to quickly configure common settings

Supports up to 128,000 tokens

Controls randomness. Lower = more focused, higher = more creative

Model supports up to 128,000 tokens

Advanced Parameters

Nucleus sampling threshold (0-1)

Reduce repetition (-2 to 2)

Encourage new topics (-2 to 2)

Without Advanced Parameters

Model Configuration

Configure the AI model and its parameters for this agent.

Quick Presets

Select a preset to quickly configure common settings

Supports up to 128,000 tokens

Controls randomness. Lower = more focused, higher = more creative

Model supports up to 128,000 tokens

Without Presets

Model Configuration

Configure the AI model and its parameters for this agent.

Supports up to 128,000 tokens

Controls randomness. Lower = more focused, higher = more creative

Model supports up to 128,000 tokens

Advanced Parameters

Nucleus sampling threshold (0-1)

Reduce repetition (-2 to 2)

Encourage new topics (-2 to 2)

With Validation Errors

Model Configuration

Configure the AI model and its parameters for this agent.

Quick Presets

Select a preset to quickly configure common settings

Supports up to 128,000 tokens

Advanced Parameters

Nucleus sampling threshold (0-1)

Reduce repetition (-2 to 2)

Encourage new topics (-2 to 2)

Dark

Model Configuration

Configure the AI model and its parameters for this agent.

Quick Presets

Select a preset to quickly configure common settings

Supports up to 128,000 tokens

Controls randomness. Lower = more focused, higher = more creative

Model supports up to 128,000 tokens

Advanced Parameters

Nucleus sampling threshold (0-1)

Reduce repetition (-2 to 2)

Encourage new topics (-2 to 2)