Skip to content

Commit

Permalink
🐛 fix: fix the history-count text (lobehub#615)
Browse files Browse the repository at this point in the history
  • Loading branch information
reece00 authored Dec 14, 2023
1 parent 4b64c7d commit 4db1cef
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion locales/zh_CN/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"prettifying": "润色中..."
},
"temp": "临时",
"tokenDetail": "角色设定: {{systemRoleToken}} · 历史消息: {{chatsToken}}",
"tokenDetail": "角色设定: {{systemRoleToken}} · 会话消息: {{chatsToken}}",
"tokenTag": {
"overload": "超过限制",
"remained": "剩余",
Expand Down
4 changes: 2 additions & 2 deletions locales/zh_CN/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@
"unlimited": "不限历史消息数"
},
"historyCount": {
"desc": "每次请求携带的历史消息数",
"title": "附带历史消息数"
"desc": "每次请求携带的消息数(包括最新编写的提问。每个提问和回答都计算1)",
"title": "附带消息数"
},
"inputTemplate": {
"desc": "用户最新的一条消息会填充到此模板",
Expand Down
2 changes: 1 addition & 1 deletion src/features/AgentSetting/AgentConfig/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const AgentConfig = memo(() => {
valuePropName: 'checked',
},
{
children: <SliderWithInput max={32} min={0} />,
children: <SliderWithInput max={32} min={1} />,
desc: t('settingChat.historyCount.desc'),
divider: false,
hidden: !config.enableHistoryCount,
Expand Down
2 changes: 1 addition & 1 deletion src/locales/default/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default {
prettifying: '润色中...',
},
temp: '临时',
tokenDetail: '角色设定: {{systemRoleToken}} · 历史消息: {{chatsToken}}',
tokenDetail: '角色设定: {{systemRoleToken}} · 会话消息: {{chatsToken}}',
tokenTag: {
overload: '超过限制',
remained: '剩余',
Expand Down
4 changes: 2 additions & 2 deletions src/locales/default/setting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ export default {
unlimited: '不限历史消息数',
},
historyCount: {
desc: '每次请求携带的历史消息数',
title: '附带历史消息数',
desc: '每次请求携带的消息数(包括最新编写的提问。每个提问和回答都计算1)',
title: '附带消息数',
},
inputTemplate: {
desc: '用户最新的一条消息会填充到此模板',
Expand Down

0 comments on commit 4db1cef

Please sign in to comment.