Emit all supported parameter flags explicitly

Always write both true and false values in the generated
registry so unsupported parameters are visible at a glance
instead of relying on Go zero-value defaults.

Signed-off-by: Aurélien Sibiril <81782+aureliensibiril@users.noreply.github.com>
This commit is contained in:
Aurélien Sibiril
2026-04-13 16:28:08 +02:00
committed by Sacha Al Himdani
parent 8bd68f6d33
commit 3f4ef7b104
2 changed files with 1250 additions and 409 deletions

View File

@@ -193,9 +193,7 @@ func buildSupports(params []string) string {
"ResponseFormat", "StructuredOutputs", "Reasoning",
}
for _, f := range fieldNames {
if fields[f] {
fmt.Fprintf(&buf, " %s: true,\n", f)
}
fmt.Fprintf(&buf, " %s: %t,\n", f, fields[f])
}
return buf.String()
}

File diff suppressed because it is too large Load Diff