Selaa lähdekoodia

Fix: In the dark night theme, the message input box is not displayed correctly. #6950 (#6951)

### What problem does this PR solve?

Fix: In the dark night theme, the message input box is not displayed
correctly. #6950

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
tags/v0.18.0
balibabu 6 kuukautta sitten
vanhempi
commit
056ea68e52
No account linked to committer's email address

+ 0
- 1
web/src/components/message-input/index.less Näytä tiedosto

.messageInputWrapper { .messageInputWrapper {
margin-right: 20px; margin-right: 20px;
padding: '0px 0px 10px 0px'; padding: '0px 0px 10px 0px';
background-color: #ffffff;
border: 1px solid #d9d9d9; border: 1px solid #d9d9d9;
&:hover { &:hover {
border-color: #40a9ff; border-color: #40a9ff;

+ 6
- 1
web/src/components/message-input/index.tsx Näytä tiedosto

useRemoveNextDocument, useRemoveNextDocument,
useUploadAndParseDocument, useUploadAndParseDocument,
} from '@/hooks/document-hooks'; } from '@/hooks/document-hooks';
import { cn } from '@/lib/utils';
import { getExtension } from '@/utils/document-util'; import { getExtension } from '@/utils/document-util';
import { formatBytes } from '@/utils/file-util'; import { formatBytes } from '@/utils/file-util';
import { import {
}, [conversationId, setFileList]); }, [conversationId, setFileList]);


return ( return (
<Flex gap={1} vertical className={styles.messageInputWrapper}>
<Flex
gap={1}
vertical
className={cn(styles.messageInputWrapper, 'dark:bg-black')}
>
<TextArea <TextArea
size="large" size="large"
placeholder={t('sendPlaceholder')} placeholder={t('sendPlaceholder')}

+ 2
- 3
web/src/locales/en.ts Näytä tiedosto

createAssistant: 'Create an Assistant', createAssistant: 'Create an Assistant',
assistantSetting: 'Assistant settings', assistantSetting: 'Assistant settings',
promptEngine: 'Prompt engine', promptEngine: 'Prompt engine',
modelSetting: 'Model Setting',
modelSetting: 'Model settings',
chat: 'Chat', chat: 'Chat',
newChat: 'New chat', newChat: 'New chat',
send: 'Send', send: 'Send',
locale: 'Locale', locale: 'Locale',
selectLanguage: 'Select a language', selectLanguage: 'Select a language',
reasoning: 'Reasoning', reasoning: 'Reasoning',
reasoningTip:
`Whether to enable a reasoning workflow during question answering, as seen in models like Deepseek-R1 or OpenAI o1. When enabled, this allows the model to access external knowledge and tackle complex questions in a step-by-step manner, leveraging techniques like chain-of-thought reasoning. This approach enhances the model's ability to provide accurate responses by breaking down problems into manageable steps, improving performance on tasks that require logical reasoning and multi-step thinking.`,
reasoningTip: `Whether to enable a reasoning workflow during question answering, as seen in models like Deepseek-R1 or OpenAI o1. When enabled, this allows the model to access external knowledge and tackle complex questions in a step-by-step manner, leveraging techniques like chain-of-thought reasoning. This approach enhances the model's ability to provide accurate responses by breaking down problems into manageable steps, improving performance on tasks that require logical reasoning and multi-step thinking.`,
tavilyApiKeyTip: tavilyApiKeyTip:
'If an API key is correctly set here, Tavily-based web searches will be used to supplement knowledge base retrieval.', 'If an API key is correctly set here, Tavily-based web searches will be used to supplement knowledge base retrieval.',
tavilyApiKeyMessage: 'Please enter your Tavily API Key', tavilyApiKeyMessage: 'Please enter your Tavily API Key',

+ 3
- 3
web/src/pages/chat/chat-configuration-modal/index.tsx Näytä tiedosto

}; };


enum ConfigurationSegmented { enum ConfigurationSegmented {
AssistantSetting = 'Assistant settings',
PromptEngine = 'Prompt engine',
ModelSetting = 'Model settings',
AssistantSetting = 'Assistant Setting',
PromptEngine = 'Prompt Engine',
ModelSetting = 'Model Setting',
} }


const segmentedMap = { const segmentedMap = {

Loading…
Peruuta
Tallenna