Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fix: error message by missing model

Ilian Sapundshieve19bd320fe94
diff --git a/src/renderer/hooks/ChatProvider.tsx b/src/renderer/hooks/ChatProvider.tsx
index d4ee0c8f3..efc680a90 100644
--- a/src/renderer/hooks/ChatProvider.tsx
+++ b/src/renderer/hooks/ChatProvider.tsx
@@ -1182,7 +1182,12 @@ export const ChatContextProvider = ({ children }: ChatContextProviderProps) => {
);
}
} else {
- showNotification(t('core:ollamaConnectionError'));
+ // No model resolved for this entry's file type — not a connection
+ // problem. Most often the active provider has no default image/text
+ // model set, or the configured model isn't in the provider's list.
+ showNotification(
+ t('core:noModelConfiguredFor', { name: entry.name }),
+ );
return Promise.resolve(undefined);
}
// Extension is neither image, text/pdf nor a folder — skip it instead
diff --git a/src/renderer/locales/en/core.json b/src/renderer/locales/en/core.json
index b39134e3d..44d6d7e72 100644
--- a/src/renderer/locales/en/core.json
+++ b/src/renderer/locales/en/core.json
@@ -1106,6 +1106,7 @@
"ollamaConnectionError": "There is a problem with the Ollama service connection",
"tagsGenerationNotSupportedFor": "Tags generation not supported for: {{name}}",
"generationNotSupportedFor": "AI generation not supported for: {{name}}",
+ "noModelConfiguredFor": "No AI model is configured for: {{name}}. Check the default image/text models in the AI settings.",
"aiNoProviderConfigured": "No AI provider is configured. Open the AI settings to add one.",
"aiNoSupportedFiles": "None of the selected items can be processed by the AI.",
"fileCreated": "File '{{name}}' created.",