mirror of
https://github.com/voideditor/void
synced 2026-05-24 09:58:23 +00:00
update back to enum
This commit is contained in:
parent
222f90bbea
commit
616cd2e39b
1 changed files with 10 additions and 2 deletions
|
|
@ -46,8 +46,16 @@ const voidConfigInfo: Record<
|
|||
configFields,
|
||||
),
|
||||
|
||||
maxTokens: configString(
|
||||
"Max number of tokens to output. Must be a number.", ''
|
||||
maxTokens: configEnum(
|
||||
"Max number of tokens to output.",
|
||||
'1024',
|
||||
[
|
||||
"default", // this will be parseInt'd into NaN and ignored by the API. Anything that's not a number has this behavior.
|
||||
"1024",
|
||||
"2048",
|
||||
"4096",
|
||||
"8192"
|
||||
] as const,
|
||||
),
|
||||
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue