@lobehub/chat 1.19.25 → 1.19.26

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.
Files changed (51) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/docker-compose/local/.env.example +17 -15
  3. package/docker-compose/local/.env.zh-CN.example +19 -16
  4. package/docker-compose/local/docker-compose.yml +17 -16
  5. package/docker-compose/local/init_data.json.tar.gz +0 -0
  6. package/docker-compose/local/s3_data.tar.gz +0 -0
  7. package/docker-compose/local/setup.sh +242 -0
  8. package/docker-compose/local-logto/.env.example +33 -0
  9. package/docker-compose/local-logto/.env.zh-CN.example +33 -0
  10. package/docker-compose/local-logto/docker-compose.yml +102 -0
  11. package/docs/self-hosting/advanced/auth/next-auth/auth0.mdx +5 -6
  12. package/docs/self-hosting/advanced/auth/next-auth/auth0.zh-CN.mdx +4 -5
  13. package/docs/self-hosting/advanced/auth/next-auth/authelia.mdx +4 -4
  14. package/docs/self-hosting/advanced/auth/next-auth/authelia.zh-CN.mdx +4 -4
  15. package/docs/self-hosting/advanced/auth/next-auth/authentik.mdx +4 -4
  16. package/docs/self-hosting/advanced/auth/next-auth/authentik.zh-CN.mdx +4 -4
  17. package/docs/self-hosting/advanced/auth/next-auth/cloudflare-zero-trust.mdx +4 -4
  18. package/docs/self-hosting/advanced/auth/next-auth/cloudflare-zero-trust.zh-CN.mdx +1 -1
  19. package/docs/self-hosting/advanced/auth/next-auth/github.mdx +3 -3
  20. package/docs/self-hosting/advanced/auth/next-auth/github.zh-CN.mdx +3 -3
  21. package/docs/self-hosting/advanced/auth/next-auth/logto.mdx +4 -4
  22. package/docs/self-hosting/advanced/auth/next-auth/logto.zh-CN.mdx +4 -4
  23. package/docs/self-hosting/advanced/auth/next-auth/microsoft-entra-id.mdx +4 -4
  24. package/docs/self-hosting/advanced/auth/next-auth/microsoft-entra-id.zh-CN.mdx +4 -4
  25. package/docs/self-hosting/advanced/auth/next-auth/zitadel.mdx +5 -5
  26. package/docs/self-hosting/advanced/auth/next-auth/zitadel.zh-CN.mdx +5 -5
  27. package/docs/self-hosting/server-database/docker-compose.mdx +2 -2
  28. package/docs/self-hosting/server-database/docker-compose.zh-CN.mdx +2 -2
  29. package/locales/ar/chat.json +2 -2
  30. package/locales/bg-BG/chat.json +2 -2
  31. package/locales/de-DE/chat.json +2 -2
  32. package/locales/en-US/chat.json +2 -2
  33. package/locales/es-ES/chat.json +2 -2
  34. package/locales/fr-FR/chat.json +2 -2
  35. package/locales/it-IT/chat.json +2 -2
  36. package/locales/ja-JP/chat.json +2 -2
  37. package/locales/ko-KR/chat.json +2 -2
  38. package/locales/nl-NL/chat.json +2 -2
  39. package/locales/pl-PL/chat.json +2 -2
  40. package/locales/pt-BR/chat.json +2 -2
  41. package/locales/ru-RU/chat.json +2 -2
  42. package/locales/tr-TR/chat.json +2 -2
  43. package/locales/vi-VN/chat.json +2 -2
  44. package/locales/zh-CN/chat.json +2 -2
  45. package/locales/zh-TW/chat.json +2 -2
  46. package/package.json +1 -1
  47. package/src/app/(main)/chat/(workspace)/_layout/Desktop/ChatHeader/Main.tsx +2 -2
  48. package/src/config/modelProviders/ai360.ts +2 -1
  49. package/src/layout/GlobalProvider/StoreInitialization.tsx +12 -8
  50. package/src/libs/agent-runtime/ai360/index.ts +8 -0
  51. package/src/locales/default/chat.ts +2 -2
@@ -8,7 +8,6 @@ const Ai360: ModelProviderCard = {
8
8
  '360GPT2 Pro 是 360 公司推出的高级自然语言处理模型,具备卓越的文本生成和理解能力,尤其在生成与创作领域表现出色,能够处理复杂的语言转换和角色演绎任务。',
9
9
  displayName: '360GPT2 Pro',
10
10
  enabled: true,
11
- functionCall: false,
12
11
  id: '360gpt2-pro',
13
12
  maxOutput: 7000,
14
13
  pricing: {
@@ -22,6 +21,8 @@ const Ai360: ModelProviderCard = {
22
21
  description:
23
22
  '360GPT Pro 作为 360 AI 模型系列的重要成员,以高效的文本处理能力满足多样化的自然语言应用场景,支持长文本理解和多轮对话等功能。',
24
23
  displayName: '360GPT Pro',
24
+ enabled: true,
25
+ functionCall: true,
25
26
  id: '360gpt-pro',
26
27
  maxOutput: 7000,
27
28
  pricing: {
@@ -20,12 +20,14 @@ const StoreInitialization = memo(() => {
20
20
  useTranslation('error');
21
21
 
22
22
  const router = useRouter();
23
- const [isLogin, isSignedIn, useInitUserState, importUrlShareSettings] = useUserStore((s) => [
24
- authSelectors.isLogin(s),
25
- s.isSignedIn,
26
- s.useInitUserState,
27
- s.importUrlShareSettings,
28
- ]);
23
+ const [isLogin, isSignedIn, useInitUserState, importUrlShareSettings, isUserStateInit] =
24
+ useUserStore((s) => [
25
+ authSelectors.isLogin(s),
26
+ s.isSignedIn,
27
+ s.useInitUserState,
28
+ s.importUrlShareSettings,
29
+ s.isUserStateInit,
30
+ ]);
29
31
 
30
32
  const { serverConfig } = useServerConfigStore();
31
33
 
@@ -74,8 +76,10 @@ const StoreInitialization = memo(() => {
74
76
  // Import settings from the url
75
77
  const searchParam = useSearchParams().get(LOBE_URL_IMPORT_NAME);
76
78
  useEffect(() => {
77
- importUrlShareSettings(searchParam);
78
- }, [searchParam]);
79
+ // Why use `usUserStateInit`,
80
+ // see: https://github.com/lobehub/lobe-chat/pull/4072
81
+ if (searchParam && isUserStateInit) importUrlShareSettings(searchParam);
82
+ }, [searchParam, isUserStateInit]);
79
83
 
80
84
  useEffect(() => {
81
85
  if (mobile) {
@@ -3,6 +3,14 @@ import { LobeOpenAICompatibleFactory } from '../utils/openaiCompatibleFactory';
3
3
 
4
4
  export const LobeAi360AI = LobeOpenAICompatibleFactory({
5
5
  baseURL: 'https://ai.360.cn/v1',
6
+ chatCompletion: {
7
+ handlePayload: (payload) => {
8
+ return {
9
+ ...payload,
10
+ stream: !payload.tools,
11
+ } as any;
12
+ },
13
+ },
6
14
  debug: {
7
15
  chatCompletion: () => process.env.DEBUG_AI360_CHAT_COMPLETION === '1',
8
16
  },
@@ -6,7 +6,7 @@ export default {
6
6
  '你好,我是 **{{name}}**,你可以立即与我开始对话,也可以前往 [助手设置]({{url}}) 完善我的信息。',
7
7
  agentDefaultMessageWithSystemRole: '你好,我是 **{{name}}**,{{systemRole}},让我们开始对话吧!',
8
8
  agentDefaultMessageWithoutEdit: '你好,我是 **{{name}}**,让我们开始对话吧!',
9
- agentsAndConversations: '助手与会话',
9
+ agents: '助手',
10
10
  artifact: {
11
11
  generating: '生成中',
12
12
  thinking: '思考中',
@@ -83,7 +83,7 @@ export default {
83
83
  },
84
84
  regenerate: '重新生成',
85
85
  roleAndArchive: '角色与记录',
86
- searchAgentPlaceholder: '搜索助手和对话...',
86
+ searchAgentPlaceholder: '搜索助手...',
87
87
  sendPlaceholder: '输入聊天内容...',
88
88
  sessionGroup: {
89
89
  config: '分组管理',