ParameterPanel
A request's parameters: system instructions, temperature, top P, max output tokens, and reasoning for models that reason. Unset is the model's default.
function Basic() {
const [value, setValue] = useState<PlaygroundParameters>({ instructions });
return (
<ParameterPopover
value={value}
onValueChange={setValue}
reasoning
align="start"
trigger={
<Button size="sm" variant="secondary" leadingIcon={icons.displayOptions}>
Parameters
</Button>
}
/>
);
}import { ParameterPanel, ParameterPopover } from "@logicplanes/kaeso-ui/playground";Props
defaultsPick<PlaygroundParameters, "temperature" | "topP">What unset shows (temperature 1 and top P 1 unless given): the model's defaults.
disabledboolean = falseTurns off every parameter.
instructionsboolean = trueShows the system instructions field (true by default).
layout"popover" | "panel" = popoverCompact inside a popover, or roomier in a side panel.
maxOutputTokensLimitnumberThe model's most output tokens: the field's maximum.
onValueChange(next: PlaygroundParameters) => voidCalled with the changed parameters.
reasoningboolean | ReasoningEffort[] = falseThe reasoning efforts the model takes, or false (the default) when it doesn't reason: no effort and no summary.
samplingboolean = trueShows temperature and top P; models that reason often take neither (true by default).
valuePlaygroundParametersThe parameters, such as temperature and effort.