fix(webui): open the preset for blocked image input (#6724)
This commit is contained in:
1 parent
607de63fb4
commit
ce12bfdd0d
38 files changed
+430
-78
No files matched your search
@@ -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.`
|
||||
|
||||
Reference in new issue
Block a user