fix(webui): open the preset for blocked image input (#6724)

This commit is contained in:
chengyongru authored and GitHub committed 2026-11-19 18:39:00 +08:00
1 parent 607de63fb4
commit ce12bfdd0d
38 files changed
+430 -78

No files matched your search

+3
View File
@@ -31,6 +31,9 @@ function retryFailureLabel(errorKind: string): string {
}
export function terminalModelFailureLine(errorKind?: string, attempts?: number): string {
if (errorKind === "unsupported_image") {
return "Image input is off for this preset. Check the preset or select a model that supports images."
}
const reason = retryFailureLabel(errorKind || "unknown")
if (errorKind === "billing") {
return `${reason}. Add credit or check billing for the provider account, then try again.`