Parameter Configuration (preview)
This feature is available from 2.2.0-beta-1 and currently in preview state and subject to change.
|
Common parameters for all parameter types are String name
, String description
, Boolean required
, Boolean hidden
and Object defaultValue
. Additional parameters depend on the type of the parameter.
≈
Parameter Type | Description | ||
---|---|---|---|
|
Basic text parameter type. Supports all common parameters. |
||
|
Special string type for AI model prompts. Usually used to render a |
||
|
Numeric parameter type. Supports all common parameters plus optional |
||
|
Parameter with predefined options. Requires an additional |
||
|
Special string type for handling URLs or resource links. Usually used to render a |
||
|
True/false parameter type. Supports all common parameters with boolean values. |
||
|
Complex parameter type for nested configurations in JSON format. The JSON schema is defined in the Example:
|
||
|
Special string type for handling image URLs. ImageUrl can either be a URL or a base64 encoded image. |
||
|
Special string type for handling base64 encoded images. |
||
|
A list of parameters. Use Example:
|
||
|
Complex parameter type for nested configurations. Supports all common parameters. This is used for complex input parameters without any specific type.
|
||
'switchable' |
Special parameter type for handling switchable parameters. This can be used when a model or task accepts different types of input in the same parameter. Below a more complex example where an image model allows to either use a preset (type
|