Skip to content

Commit

Permalink
🌐 style: ε’žεŠ ε›½ι™…εŒ–ζ–‡ζ‘ˆ
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Jul 23, 2023
1 parent b15fb02 commit f5e8d7c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/locales/default/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export default {
'agentAvatar': '倴像',
'agentDescription': '描述',
'agentDescriptionPlaceholder': 'θ―·θΎ“ε…₯描述',
'agentMaxToken': 'δΌšθ―ζœ€ε€§ι•ΏεΊ¦',
'agentModel': 'ζ¨‘εž‹',
'agentName': '名称',
'agentNamePlaceholder': 'θ―·θΎ“ε…₯名称',
Expand Down
11 changes: 6 additions & 5 deletions src/pages/chat/[id]/Config/ReadMode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { createStyles } from 'antd-style';
import isEqual from 'fast-deep-equal';
import { LucideBrain, LucideThermometer, WholeWord } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
import { Center, Flexbox } from 'react-layout-kit';
import { shallow } from 'zustand/shallow';

Expand Down Expand Up @@ -31,26 +32,26 @@ const ReadMode = memo(() => {
const title = useSessionStore(agentSelectors.currentAgentTitle, shallow);
const model = useSessionStore(agentSelectors.currentAgentModel, shallow);

const { t } = useTranslation('common');
return (
<Center gap={12} padding={'32px 16px'} style={{ marginTop: 8 }}>
<Center gap={12} paddingBlock={16} style={{ marginTop: 8 }}>
<Avatar avatar={avatar} size={100} />
<Flexbox className={styles.title}>{title || DEFAULT_TITLE}</Flexbox>
<Flexbox className={styles.model}>{model}</Flexbox>
<Flexbox className={styles.desc}>{session.meta.description}</Flexbox>

<Flexbox flex={1} gap={12} width={'100%'}>
<ConfigCell icon={LucideBrain} label={'提瀺词'} />

<ConfigCell icon={LucideBrain} label={t('agentPrompt')} />
<ConfigCellGroup
items={[
{
icon: LucideThermometer,
label: 'ζΈ©εΊ¦',
label: t('modelTemperature'),
value: session.config.params.temperature,
},
{
icon: WholeWord,
label: 'δΌšθ―ζœ€ε€§ι•ΏεΊ¦',
label: t('agentMaxToken'),
value: session.config.params.max_tokens,
},
]}
Expand Down

0 comments on commit f5e8d7c

Please sign in to comment.