Skip to main content

Module configuration

Module configuration 

Source
Expand description

Merging a model’s saved configuration into a request: keeping only parameter values the current schema still recognizes, and seeding the system prompt.

Functions§

dropping_vanished_param_values
A copy of record with parameter values for vanished parameters removed.
merged
Merge the record’s configuration into a request payload.
normalized_param_values
The record’s parameter values, each run through its spec: a value is kept only when its key still has a spec in the current schema AND the value coerces/clamps to that spec (see ParamSpec::normalized). Values for vanished parameters and wrong-typed / unnormalizable values are dropped, so nothing out-of-range or off-type can reach a runtime.