@lobehub/chat 1.5.5 → 1.6.1
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/.i18nrc.js +1 -1
- package/.seorc.cjs +1 -1
- package/CHANGELOG.md +50 -0
- package/README.md +8 -8
- package/README.zh-CN.md +8 -8
- package/locales/ar/chat.json +1 -5
- package/locales/ar/components.json +6 -0
- package/locales/ar/setting.json +0 -6
- package/locales/bg-BG/chat.json +1 -5
- package/locales/bg-BG/components.json +6 -0
- package/locales/bg-BG/setting.json +0 -6
- package/locales/de-DE/chat.json +1 -5
- package/locales/de-DE/components.json +6 -0
- package/locales/de-DE/setting.json +0 -6
- package/locales/en-US/chat.json +1 -5
- package/locales/en-US/components.json +6 -0
- package/locales/en-US/setting.json +0 -6
- package/locales/es-ES/chat.json +1 -5
- package/locales/es-ES/components.json +6 -0
- package/locales/es-ES/setting.json +0 -6
- package/locales/fr-FR/chat.json +1 -5
- package/locales/fr-FR/components.json +6 -0
- package/locales/fr-FR/setting.json +0 -6
- package/locales/it-IT/chat.json +1 -5
- package/locales/it-IT/components.json +6 -0
- package/locales/it-IT/setting.json +0 -6
- package/locales/ja-JP/chat.json +1 -5
- package/locales/ja-JP/components.json +6 -0
- package/locales/ja-JP/setting.json +0 -6
- package/locales/ko-KR/chat.json +1 -5
- package/locales/ko-KR/components.json +6 -0
- package/locales/ko-KR/setting.json +0 -6
- package/locales/nl-NL/chat.json +1 -5
- package/locales/nl-NL/components.json +6 -0
- package/locales/nl-NL/setting.json +0 -6
- package/locales/pl-PL/chat.json +1 -5
- package/locales/pl-PL/components.json +6 -0
- package/locales/pl-PL/setting.json +0 -6
- package/locales/pt-BR/chat.json +1 -5
- package/locales/pt-BR/components.json +6 -0
- package/locales/pt-BR/setting.json +0 -6
- package/locales/ru-RU/chat.json +1 -5
- package/locales/ru-RU/components.json +6 -0
- package/locales/ru-RU/setting.json +0 -6
- package/locales/tr-TR/chat.json +1 -5
- package/locales/tr-TR/components.json +6 -0
- package/locales/tr-TR/setting.json +0 -6
- package/locales/vi-VN/chat.json +1 -5
- package/locales/vi-VN/components.json +6 -0
- package/locales/vi-VN/setting.json +0 -6
- package/locales/zh-CN/chat.json +2 -6
- package/locales/zh-CN/components.json +6 -0
- package/locales/zh-CN/setting.json +0 -6
- package/locales/zh-TW/chat.json +1 -5
- package/locales/zh-TW/components.json +6 -0
- package/locales/zh-TW/setting.json +0 -6
- package/package.json +1 -1
- package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop/Footer/index.tsx +18 -2
- package/src/{app/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop/Footer/DragUpload.tsx → components/DragUpload/index.tsx} +14 -31
- package/src/config/modelProviders/openai.ts +59 -50
- package/src/const/settings/agent.ts +2 -1
- package/src/const/settings/llm.ts +1 -1
- package/src/database/client/schemas/session.ts +2 -1
- package/src/layout/GlobalProvider/Locale.tsx +19 -2
- package/src/libs/agent-runtime/openai/__snapshots__/index.test.ts.snap +0 -1
- package/src/libs/agent-runtime/openrouter/__snapshots__/index.test.ts.snap +1 -1
- package/src/locales/default/chat.ts +0 -4
- package/src/locales/default/components.ts +6 -0
- package/src/locales/default/setting.ts +0 -6
- package/src/store/user/slices/modelList/selectors/modelProvider.test.ts +1 -1
- package/src/store/user/slices/modelList/selectors/modelProvider.ts +1 -1
- package/src/types/agent/index.ts +1 -1
|
@@ -132,9 +132,5 @@ export default {
|
|
|
132
132
|
actionFiletip: '上传文件',
|
|
133
133
|
actionTooltip: '上传图片',
|
|
134
134
|
disabled: '当前模型不支持视觉识别和文件分析,请切换模型后使用',
|
|
135
|
-
dragDesc: '拖拽文件到这里,支持上传多个图片。按住 Shift 直接发送图片',
|
|
136
|
-
dragFileDesc: '拖拽图片和文件到这里,支持上传多个图片和文件。按住 Shift 直接发送图片或文件',
|
|
137
|
-
dragFileTitle: '上传文件',
|
|
138
|
-
dragTitle: '上传图片',
|
|
139
135
|
},
|
|
140
136
|
};
|
|
@@ -213,12 +213,6 @@ export default {
|
|
|
213
213
|
},
|
|
214
214
|
model: {
|
|
215
215
|
desc: '{{provider}} 模型',
|
|
216
|
-
list: {
|
|
217
|
-
'gpt-3.5-turbo': 'GPT 3.5',
|
|
218
|
-
'gpt-3.5-turbo-16k': 'GPT 3.5 (16K)',
|
|
219
|
-
'gpt-4': 'GPT 4',
|
|
220
|
-
'gpt-4-32k': 'GPT 4 (32K)',
|
|
221
|
-
},
|
|
222
216
|
title: '模型',
|
|
223
217
|
},
|
|
224
218
|
presencePenalty: {
|
|
@@ -49,7 +49,7 @@ describe('modelProviderSelectors', () => {
|
|
|
49
49
|
const s = merge(initialState, {}) as unknown as UserStore;
|
|
50
50
|
|
|
51
51
|
const result = modelProviderSelectors.getDefaultEnabledModelsById('openai')(s);
|
|
52
|
-
expect(result).toEqual(['gpt-
|
|
52
|
+
expect(result).toEqual(['gpt-4o-mini', 'gpt-4o', 'gpt-4-turbo']);
|
|
53
53
|
});
|
|
54
54
|
|
|
55
55
|
it('should return undefined for a non-existing provider', () => {
|
|
@@ -49,7 +49,7 @@ export const getDefaultModeProviderById = (provider: string) => (s: UserStore) =
|
|
|
49
49
|
/**
|
|
50
50
|
* get the default enabled models for a provider
|
|
51
51
|
* it's a default enabled model list by Lobe Chat
|
|
52
|
-
* e.g. openai is ['gpt-
|
|
52
|
+
* e.g. openai is ['gpt-4o-mini','gpt-4o','gpt-4-turbo']
|
|
53
53
|
*/
|
|
54
54
|
const getDefaultEnabledModelsById = (provider: string) => (s: UserStore) => {
|
|
55
55
|
const modelProvider = getDefaultModeProviderById(provider)(s);
|