Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

fix(ui): quiet empty state for external provider key cards

joshistoastdedb42012963
diff --git a/invokeai/frontend/webv2/public/locales/en.json b/invokeai/frontend/webv2/public/locales/en.json
index 393006b818..ed363c9172 100644
--- a/invokeai/frontend/webv2/public/locales/en.json
+++ b/invokeai/frontend/webv2/public/locales/en.json
@@ -993,6 +993,7 @@
"modelUpdated": "Model updated",
"noInstallableModelFiles": "This HuggingFace repo has no installable model files.",
"noInstallsDescription": "Model installs appear here while they download and import.",
+ "noExternalProviders": "No external model providers are available on this server.",
"noInstallsYet": "No installs yet",
"noModelFilesFound": "No model files found in {{path}}.",
"noModelFilesFoundTitle": "No model files found",
diff --git a/invokeai/frontend/webv2/src/features/models/ui/credentials/ExternalProviderKeyCards.tsx b/invokeai/frontend/webv2/src/features/models/ui/credentials/ExternalProviderKeyCards.tsx
index 2761675a39..c757015916 100644
--- a/invokeai/frontend/webv2/src/features/models/ui/credentials/ExternalProviderKeyCards.tsx
+++ b/invokeai/frontend/webv2/src/features/models/ui/credentials/ExternalProviderKeyCards.tsx
@@ -59,6 +59,16 @@ export const ExternalProviderKeyCards = ({ onError }: { onError: (title: string,
);
}
+ // A server with no external providers is a normal state, not a blank one.
+ // Nothing renders while loading — no flicker on the happy path.
+ if (status === 'loaded' && (configs ?? []).length === 0) {
+ return (
+ <Text color="fg.subtle" fontSize="2xs">
+ {t('models.noExternalProviders')}
+ </Text>
+ );
+ }
+
return (
<>
{(configs ?? []).map((config) => {