TagSpaces is an offline, open source, document manager with tagging support
chore: added lm studio and llama.cpp as local ai services
Ilian Sapundshievb936e15e23ea
diff --git a/src/renderer/components/dialogs/components/SettingsAI.tsx b/src/renderer/components/dialogs/components/SettingsAI.tsxindex da77e8efc..3b235e852 100644--- a/src/renderer/components/dialogs/components/SettingsAI.tsx+++ b/src/renderer/components/dialogs/components/SettingsAI.tsx@@ -25,20 +25,20 @@ import {ReloadIcon,RemoveIcon,} from '-/components/CommonIcons';-import TsTooltip from '-/components/TsTooltip';import TsButton from '-/components/TsButton';import TsIconButton from '-/components/TsIconButton';import TsMenuList from '-/components/TsMenuList';import TsSelect from '-/components/TsSelect';import TsSwitch from '-/components/TsSwitch';import TsTextField from '-/components/TsTextField';+import TsTooltip from '-/components/TsTooltip';import { AIProvider } from '-/components/chat/ChatTypes';+import SelectChatModel from '-/components/chat/SelectChatModel';import {AiPreset,aiPresets,presetIconForEngine,} from '-/components/chat/aiPresets';-import SelectChatModel from '-/components/chat/SelectChatModel';import { useChatContext } from '-/hooks/useChatContext';import { Pro } from '-/pro';import { AppDispatch } from '-/reducers/app';@@ -47,7 +47,6 @@ import {getAIProviders,getDefaultAIProvider,} from '-/reducers/settings';-import { openURLExternally } from '-/services/utils-io';import { TS } from '-/tagspaces.namespace';import FiberManualRecordIcon from '@mui/icons-material/FiberManualRecord';import {@@ -250,23 +249,7 @@ function SettingsAI(props: Props) {variant="caption"sx={{ display: 'block', marginBottom: 1 }}>- {t('peri:ollamaIntroPrefix')}{' '}- <TsButton- sx={{- fontSize: '13px',- textTransform: 'unset',- fontWeight: 'normal',- paddingTop: 0,- paddingBottom: 0,- }}- variant="text"- onClick={() => {- openURLExternally('https://ollama.com/download', true);- }}- >- ollama.com- </TsButton>{' '}- {t('peri:ollamaIntroSuffix')}+ {t('peri:aiClarification')}{' '}</Typography><ClickAwayListener onClickAway={handleClose}><Boxdiff --git a/src/renderer/locales/en/peri.json b/src/renderer/locales/en/peri.jsonindex 8deece0db..6454f66ca 100644--- a/src/renderer/locales/en/peri.json+++ b/src/renderer/locales/en/peri.json@@ -72,7 +72,7 @@"ptsGalleryTitle": "Gallery Perspective in TagSpaces Pro","ptsGallery": "Perfect for organizing photos and images, the Gallery Perspective includes a clean presentation mode. Simply hit play to enjoy a slideshow of your images in sequence—or switch to full-screen for a distraction-free, immersive experience.","ptsAITitle": "Automate Your Workflow with Local AI",- "ptsAI": "TagSpaces Pro can connect to Ollama or other local AI services, giving you access to powerful automation features:",+ "ptsAI": "TagSpaces Pro can connect to LM Studio, Ollama or llama.cpp, giving you access to powerful automation features:","ptsAISection1": "Content summarization – for text, Markdown, HTML, and PDF files.","ptsAISection2": "Image descriptions – automatically generate captions for JPG and PNG files.","ptsAISection3": "Smart tag extraction – from text, documents, and images.",@@ -146,8 +146,7 @@"trelloImportStep5": "Choose 'Export as JSON'.","trelloImportStep6": "Initiate the import by selecting the exported file with the help of the next button.","resetsToDefaultPrompt": "Resets to the default prompt",- "ollamaIntroPrefix": "TagSpaces does not have its own AI engine or models, but relies entirely on external software like Ollama. If you don't have Ollama, you can download it for free from",- "ollamaIntroSuffix": "and follow the installation instructions to get it set up on your computer.",+ "aiClarification": "TagSpaces does not have its own AI engine or models, but relies entirely on external software like llama.cpp, Ollama or LM Studio.","aiFunctionalityDisabled": "All AI-functionality is currently disabled. Please add and configure an AI-engine in order to use external AIs in TagSpaces.","confirmRemoveAiConfig": "Do you want to remove \"{{name}}\" AI config?","tagSpacesPro": "TagSpaces Pro",