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:
committed by
Sacha Al Himdani
parent
8bd68f6d33
commit
3f4ef7b104
@@ -193,9 +193,7 @@ func buildSupports(params []string) string {
|
|||||||
"ResponseFormat", "StructuredOutputs", "Reasoning",
|
"ResponseFormat", "StructuredOutputs", "Reasoning",
|
||||||
}
|
}
|
||||||
for _, f := range fieldNames {
|
for _, f := range fieldNames {
|
||||||
if fields[f] {
|
fmt.Fprintf(&buf, " %s: %t,\n", f, fields[f])
|
||||||
fmt.Fprintf(&buf, " %s: true,\n", f)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return buf.String()
|
return buf.String()
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user