fix: 图片尺寸仅展示当前模型合法选项
This commit is contained in:
1 parent
b242014af2
commit
0b521d88c9
1 file changed
+1
-1
@@ -36,7 +36,7 @@ function optionKey(value: string | number) {
|
||||
function constrainedOptions(schema: GenerationOptionSchema, current: string | number | boolean | undefined) {
|
||||
const options = selectOptions(schema)
|
||||
if (schema.type === 'size') {
|
||||
for (const value of ['1K', '1.5K', '2K']) options.push({ label: value, value })
|
||||
// 图片尺寸完全由当前 Provider Schema 决定,禁止混入其它模型的分辨率档位。
|
||||
} else if (
|
||||
isDuration(schema) &&
|
||||
Number.isInteger(schema.min) &&
|
||||
|
||||
Reference in new issue
Block a user