diff --git a/surfsense_web/components/shared/image-config-dialog.tsx b/surfsense_web/components/shared/image-config-dialog.tsx index a364b6a64..fe8a73df6 100644 --- a/surfsense_web/components/shared/image-config-dialog.tsx +++ b/surfsense_web/components/shared/image-config-dialog.tsx @@ -104,8 +104,6 @@ export function ImageConfigDialog({ setScrollPos(atTop ? "top" : atBottom ? "bottom" : "middle"); }, []); - const isAutoMode = config && "is_auto_mode" in config && config.is_auto_mode; - const suggestedModels = useMemo(() => { if (!formData.provider) return []; return IMAGE_GEN_MODELS.filter((m) => m.provider === formData.provider); @@ -113,14 +111,12 @@ export function ImageConfigDialog({ const getTitle = () => { if (mode === "create") return "Add Image Model"; - if (isAutoMode) return "Auto Mode (Fastest)"; if (isGlobal) return "View Global Image Model"; return "Edit Image Model"; }; const getSubtitle = () => { if (mode === "create") return "Set up a new image generation provider"; - if (isAutoMode) return "Automatically routes requests across providers"; if (isGlobal) return "Read-only global configuration"; return "Update your image model settings"; }; @@ -213,19 +209,14 @@ export function ImageConfigDialog({

{getTitle()}

- {isAutoMode && ( - - Recommended - - )} - {isGlobal && !isAutoMode && mode !== "create" && ( + {isGlobal && mode !== "create" && ( Global )}

{getSubtitle()}

- {config && !isAutoMode && mode !== "create" && ( + {config && mode !== "create" && (

{config.model_name}

@@ -243,16 +234,7 @@ export function ImageConfigDialog({ WebkitMaskImage: `linear-gradient(to bottom, ${scrollPos === "top" ? "black" : "transparent"}, black 16px, black calc(100% - 16px), ${scrollPos === "bottom" ? "black" : "transparent"})`, }} > - {isAutoMode && ( - - - Auto mode distributes image generation requests across all configured - providers for optimal performance and rate limit protection. - - - )} - - {isGlobal && !isAutoMode && config && ( + {isGlobal && config && ( <> @@ -470,16 +452,7 @@ export function ImageConfigDialog({ {isSubmitting && } - ) : isAutoMode ? ( - - ) : isGlobal && config ? ( + ) : isGlobal && config ? ( - {mode === "create" || (!isGlobal && !isAutoMode && config) ? ( + {mode === "create" || (!isGlobal && config) ? ( - ) : isAutoMode ? ( - - ) : isGlobal && config ? ( + ) : isGlobal && config ? (