Skip to content

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

chore: small ui changes for the chat

Ilian Sapundshievb1962c829d1f
diff --git a/src/renderer/components/chat/ChatView.tsx b/src/renderer/components/chat/ChatView.tsx
index 1f2403238..a70a14bfc 100644
--- a/src/renderer/components/chat/ChatView.tsx
+++ b/src/renderer/components/chat/ChatView.tsx
@@ -27,6 +27,7 @@ import ChatDndTargetFile from '-/components/chat/ChatDndTargetFile';
import ChatMenu from '-/components/chat/ChatMenu';
import { AIProvider, ChatItem, ChatMode } from '-/components/chat/ChatTypes';
import SelectChatModel from '-/components/chat/SelectChatModel';
+import ConfirmDialog from '-/components/dialogs/ConfirmDialog';
import { OllamaIcon } from '-/components/dialogs/components/Ollama';
import { useChatContext } from '-/hooks/useChatContext';
import { useNotificationContext } from '-/hooks/useNotificationContext';
@@ -55,7 +56,6 @@ import React, {
import { NativeTypes } from 'react-dnd-html5-backend';
import { useTranslation } from 'react-i18next';
import { useSelector } from 'react-redux';
-import ConfirmDialog from '-/components/dialogs/ConfirmDialog';
function ChatView() {
const { t } = useTranslation();
@@ -407,6 +407,7 @@ function ChatView() {
disabled={isTyping.current}
name="entryName"
//label={t('core:newChatMessage')}
+ placeholder={t('core:yourMessageForAI')}
onChange={handleInputChange}
value={chatMsg.current}
onKeyDown={(event) => {
@@ -466,7 +467,7 @@ function ChatView() {
/>
<FormHelperText>
{t('core:aiHelp', {
- chatModel: currentModel ? currentModel.name : 'Assistant',
+ chatModel: currentModel && '(' + currentModel.name + ')',
})}
</FormHelperText>
</FormControl>
diff --git a/src/renderer/locales/en/core.json b/src/renderer/locales/en/core.json
index 0f4c15a1b..b3734bb68 100644
--- a/src/renderer/locales/en/core.json
+++ b/src/renderer/locales/en/core.json
@@ -888,7 +888,7 @@
"refreshServiceStatus": "Refresh service status",
"newChatMessage": "Message",
"downloadChatModel": "Downloading AI Model",
- "aiHelp": "{{chatModel}} can make mistakes. Check the important information before use!",
+ "aiHelp": "AI model {{chatModel}} can make mistakes. Verify the provided information before using it!",
"generateTags": "Generate Tags",
"generateTagsFromDescription": "Tags From Description",
"generateDescription": "Generate Description",
@@ -906,6 +906,7 @@
"engineName": "AI Engine Name",
"maxCollectedTag": "Max Collected Tag",
"aiChatTab": "AI Chat",
+ "yourMessageForAI": "Your message for the AI",
"links": "Links",
"generateInbound": "Find Inbound Links",
"reGenerateInbound": "Refresh Inbound Links",