mirror of
https://github.com/web-infra-dev/midscene.git
synced 2026-01-05 19:50:58 +00:00
feat(core): show warning for oversized image (#564)
--------- Co-authored-by: zhouxiao.shaw <zhouxiao.shaw@bytedance.com>
This commit is contained in:
parent
c777c139e4
commit
445381efef
@ -199,6 +199,11 @@ export function warnGPT4oSizeLimit(size: Size) {
|
||||
console.warn(warningMsg);
|
||||
warned = true;
|
||||
}
|
||||
} else if (size.width > 1800 || size.height > 1800) {
|
||||
console.warn(
|
||||
`The image size seems too large (${size.width}x${size.height}). It may lead to more token usage, slower response, and inaccurate result.`,
|
||||
);
|
||||
warned = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user