diff --git a/frontend/src/components/Chat/ChatPanel.tsx b/frontend/src/components/Chat/ChatPanel.tsx index bca0609..fcfe8ed 100644 --- a/frontend/src/components/Chat/ChatPanel.tsx +++ b/frontend/src/components/Chat/ChatPanel.tsx @@ -304,7 +304,7 @@ export function ChatPanel() { return ( @@ -1326,8 +1327,13 @@ function ParamsForm({ const value = params[key] ?? property.default ?? "" const label = property.title ?? key + // An optional setting (`float | None`) has its type inside `anyOf`. + const options = property.anyOf?.map((option) => option.type) ?? [] + const kind = + property.type ?? options.find((option) => option !== "null") + const nullable = options.includes("null") - if (property.type === "boolean") { + if (kind === "boolean") { return (