refactor(config): use Schema.Literals

This commit is contained in:
Kit Langton
2026-04-14 21:07:50 -04:00
parent 2a118b5214
commit 5435a699b8

View File

@@ -25,7 +25,7 @@ const Mode = Schema.Struct({
const Interleaved = Schema.Union([
Schema.Boolean,
Schema.Struct({
field: Schema.Union([Schema.Literal("reasoning_content"), Schema.Literal("reasoning_details")]),
field: Schema.Literals(["reasoning_content", "reasoning_details"]),
}),
]).annotate({ identifier: "ConfigProvidersModelInterleaved" })