@lobehub/chat 1.53.12 → 1.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +33 -0
- package/Dockerfile +2 -0
- package/Dockerfile.database +2 -0
- package/changelog/v1.json +12 -0
- package/locales/ar/modelProvider.json +0 -1
- package/locales/ar/setting.json +12 -9
- package/locales/bg-BG/modelProvider.json +0 -1
- package/locales/bg-BG/setting.json +12 -9
- package/locales/de-DE/modelProvider.json +0 -1
- package/locales/de-DE/setting.json +13 -10
- package/locales/en-US/modelProvider.json +0 -1
- package/locales/en-US/setting.json +12 -9
- package/locales/es-ES/modelProvider.json +0 -1
- package/locales/es-ES/setting.json +12 -9
- package/locales/fa-IR/modelProvider.json +0 -1
- package/locales/fa-IR/setting.json +12 -9
- package/locales/fr-FR/modelProvider.json +0 -1
- package/locales/fr-FR/setting.json +12 -9
- package/locales/it-IT/modelProvider.json +0 -1
- package/locales/it-IT/setting.json +13 -10
- package/locales/ja-JP/modelProvider.json +0 -1
- package/locales/ja-JP/setting.json +12 -9
- package/locales/ko-KR/modelProvider.json +0 -1
- package/locales/ko-KR/setting.json +12 -9
- package/locales/nl-NL/modelProvider.json +0 -1
- package/locales/nl-NL/setting.json +12 -9
- package/locales/pl-PL/modelProvider.json +0 -1
- package/locales/pl-PL/setting.json +12 -9
- package/locales/pt-BR/modelProvider.json +0 -1
- package/locales/pt-BR/setting.json +13 -10
- package/locales/ru-RU/modelProvider.json +0 -1
- package/locales/ru-RU/setting.json +12 -9
- package/locales/tr-TR/modelProvider.json +0 -1
- package/locales/tr-TR/setting.json +12 -9
- package/locales/vi-VN/modelProvider.json +0 -1
- package/locales/vi-VN/setting.json +12 -9
- package/locales/zh-CN/modelProvider.json +0 -1
- package/locales/zh-CN/setting.json +13 -10
- package/locales/zh-TW/modelProvider.json +0 -1
- package/locales/zh-TW/setting.json +12 -9
- package/package.json +1 -1
- package/src/app/[variants]/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop/index.tsx +1 -1
- package/src/app/[variants]/(main)/settings/llm/ProviderList/providers.tsx +2 -0
- package/src/components/InfoTooltip/index.tsx +25 -0
- package/src/components/Loading/UpdateLoading/index.tsx +19 -0
- package/src/config/aiModels/index.ts +3 -0
- package/src/config/aiModels/nvidia.ts +155 -0
- package/src/config/llm.ts +6 -0
- package/src/config/modelProviders/index.ts +4 -0
- package/src/config/modelProviders/nvidia.ts +21 -0
- package/src/features/ChatInput/ActionBar/Params/ParamsControls.tsx +95 -0
- package/src/features/ChatInput/ActionBar/Params/index.tsx +47 -0
- package/src/features/ChatInput/ActionBar/config.ts +3 -2
- package/src/features/ChatInput/Mobile/index.tsx +1 -1
- package/src/features/ModelParamsControl/FrequencyPenalty.tsx +37 -0
- package/src/features/ModelParamsControl/PresencePenalty.tsx +35 -0
- package/src/features/ModelParamsControl/Temperature.tsx +71 -0
- package/src/features/ModelParamsControl/TopP.tsx +39 -0
- package/src/features/ModelParamsControl/index.ts +4 -0
- package/src/libs/agent-runtime/AgentRuntime.ts +7 -0
- package/src/libs/agent-runtime/nvidia/index.ts +44 -0
- package/src/libs/agent-runtime/types/type.ts +1 -0
- package/src/locales/default/setting.ts +12 -9
- package/src/types/user/settings/keyVaults.ts +1 -0
- package/src/features/ChatInput/ActionBar/Temperature.tsx +0 -49
@@ -206,8 +206,8 @@ export default {
|
|
206
206
|
title: '开启推理强度调整',
|
207
207
|
},
|
208
208
|
frequencyPenalty: {
|
209
|
-
desc: '
|
210
|
-
title: '
|
209
|
+
desc: '值越大,用词越丰富多样;值越低,用词更朴实简单',
|
210
|
+
title: '词汇丰富度',
|
211
211
|
},
|
212
212
|
maxTokens: {
|
213
213
|
desc: '单次交互所用的最大 Token 数',
|
@@ -217,9 +217,12 @@ export default {
|
|
217
217
|
desc: '{{provider}} 模型',
|
218
218
|
title: '模型',
|
219
219
|
},
|
220
|
+
params: {
|
221
|
+
title: '高级参数',
|
222
|
+
},
|
220
223
|
presencePenalty: {
|
221
|
-
desc: '
|
222
|
-
title: '
|
224
|
+
desc: '值越大,越倾向不同的表达方式,避免概念重复;值越小,越倾向使用重复的概念或叙述,表达更具一致性',
|
225
|
+
title: '表述发散度',
|
223
226
|
},
|
224
227
|
reasoningEffort: {
|
225
228
|
desc: '值越大,推理能力越强,但可能会增加响应时间和 Token 消耗',
|
@@ -231,14 +234,14 @@ export default {
|
|
231
234
|
title: '推理强度',
|
232
235
|
},
|
233
236
|
temperature: {
|
234
|
-
desc: '
|
235
|
-
title: '
|
236
|
-
|
237
|
+
desc: '数值越大,回答越有创意和想象力;数值越小,回答越严谨',
|
238
|
+
title: '创意活跃度',
|
239
|
+
warning: '创意活跃度数值过大,输出可能会产生乱码',
|
237
240
|
},
|
238
241
|
title: '模型设置',
|
239
242
|
topP: {
|
240
|
-
desc: '
|
241
|
-
title: '
|
243
|
+
desc: '考虑多少种可能性,值越大,接受更多可能的回答;值越小,倾向选择最可能的回答。不推荐和创意活跃度一起更改',
|
244
|
+
title: '思维开放度',
|
242
245
|
},
|
243
246
|
},
|
244
247
|
settingPlugin: {
|
@@ -50,6 +50,7 @@ export interface UserKeyVaults {
|
|
50
50
|
mistral?: OpenAICompatibleKeyVault;
|
51
51
|
moonshot?: OpenAICompatibleKeyVault;
|
52
52
|
novita?: OpenAICompatibleKeyVault;
|
53
|
+
nvidia?: OpenAICompatibleKeyVault;
|
53
54
|
ollama?: OpenAICompatibleKeyVault;
|
54
55
|
openai?: OpenAICompatibleKeyVault;
|
55
56
|
openrouter?: OpenAICompatibleKeyVault;
|
@@ -1,49 +0,0 @@
|
|
1
|
-
import { ActionIcon, SliderWithInput } from '@lobehub/ui';
|
2
|
-
import { Popover } from 'antd';
|
3
|
-
import { Thermometer } from 'lucide-react';
|
4
|
-
import { memo, useState } from 'react';
|
5
|
-
import { useTranslation } from 'react-i18next';
|
6
|
-
|
7
|
-
import { useAgentStore } from '@/store/agent';
|
8
|
-
import { agentSelectors } from '@/store/agent/selectors';
|
9
|
-
|
10
|
-
const Temperature = memo(() => {
|
11
|
-
const { t } = useTranslation('setting');
|
12
|
-
const [popoverOpen, setPopoverOpen] = useState(false);
|
13
|
-
|
14
|
-
const [temperature, updateAgentConfig] = useAgentStore((s) => {
|
15
|
-
const config = agentSelectors.currentAgentConfig(s);
|
16
|
-
return [config.params?.temperature, s.updateAgentConfig];
|
17
|
-
});
|
18
|
-
|
19
|
-
const title = t('settingModel.temperature.titleWithValue', { value: temperature });
|
20
|
-
|
21
|
-
return (
|
22
|
-
<Popover
|
23
|
-
arrow={false}
|
24
|
-
content={
|
25
|
-
<SliderWithInput
|
26
|
-
controls={false}
|
27
|
-
max={2}
|
28
|
-
min={0}
|
29
|
-
onChange={(v) => {
|
30
|
-
updateAgentConfig({ params: { temperature: v } });
|
31
|
-
}}
|
32
|
-
size={'small'}
|
33
|
-
step={0.1}
|
34
|
-
style={{ width: 160 }}
|
35
|
-
value={temperature}
|
36
|
-
/>
|
37
|
-
}
|
38
|
-
onOpenChange={setPopoverOpen}
|
39
|
-
open={popoverOpen}
|
40
|
-
placement={'top'}
|
41
|
-
title={t('settingModel.temperature.title')}
|
42
|
-
trigger={'click'}
|
43
|
-
>
|
44
|
-
<ActionIcon icon={Thermometer} placement={'bottom'} title={popoverOpen ? undefined : title} />
|
45
|
-
</Popover>
|
46
|
-
);
|
47
|
-
});
|
48
|
-
|
49
|
-
export default Temperature;
|