@lobehub/chat 0.146.2 → 0.147.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/.env.example +3 -5
- package/.github/workflows/issue-close-require.yml +1 -1
- package/.github/workflows/release.yml +1 -1
- package/.github/workflows/test.yml +3 -1
- package/.i18nrc.js +13 -8
- package/.seorc.cjs +9 -0
- package/CHANGELOG.md +98 -0
- package/README.md +25 -25
- package/README.zh-CN.md +25 -25
- package/contributing/Home.md +1 -1
- package/docs/self-hosting/advanced/analytics.mdx +13 -0
- package/docs/self-hosting/advanced/analytics.zh-CN.mdx +11 -0
- package/docs/self-hosting/advanced/authentication.mdx +26 -6
- package/docs/self-hosting/advanced/authentication.zh-CN.mdx +22 -6
- package/docs/self-hosting/advanced/sso-providers/auth0.mdx +76 -33
- package/docs/self-hosting/advanced/sso-providers/auth0.zh-CN.mdx +74 -33
- package/docs/self-hosting/advanced/sso-providers/authentik.mdx +49 -30
- package/docs/self-hosting/advanced/sso-providers/authentik.zh-CN.mdx +43 -28
- package/docs/self-hosting/advanced/sso-providers/github.mdx +62 -20
- package/docs/self-hosting/advanced/sso-providers/github.zh-CN.mdx +70 -34
- package/docs/self-hosting/advanced/sso-providers/microsoft-entra-id.mdx +69 -35
- package/docs/self-hosting/advanced/sso-providers/microsoft-entra-id.zh-CN.mdx +57 -32
- package/docs/self-hosting/advanced/sso-providers/zitadel.mdx +80 -35
- package/docs/self-hosting/advanced/sso-providers/zitadel.zh-CN.mdx +75 -37
- package/docs/self-hosting/advanced/upstream-sync.mdx +45 -23
- package/docs/self-hosting/advanced/upstream-sync.zh-CN.mdx +42 -23
- package/docs/self-hosting/environment-variables/analytics.mdx +16 -0
- package/docs/self-hosting/environment-variables/analytics.zh-CN.mdx +14 -0
- package/docs/self-hosting/environment-variables/auth.mdx +15 -0
- package/docs/self-hosting/environment-variables/auth.zh-CN.mdx +16 -1
- package/docs/self-hosting/environment-variables/basic.mdx +16 -0
- package/docs/self-hosting/environment-variables/basic.zh-CN.mdx +12 -0
- package/docs/self-hosting/environment-variables/model-provider.mdx +27 -0
- package/docs/self-hosting/environment-variables/model-provider.zh-CN.mdx +11 -0
- package/docs/self-hosting/environment-variables.mdx +14 -2
- package/docs/self-hosting/environment-variables.zh-CN.mdx +10 -0
- package/docs/self-hosting/examples/azure-openai.mdx +24 -8
- package/docs/self-hosting/examples/azure-openai.zh-CN.mdx +24 -8
- package/docs/self-hosting/examples/ollama.mdx +14 -0
- package/docs/self-hosting/examples/ollama.zh-CN.mdx +12 -0
- package/docs/self-hosting/faq/no-v1-suffix.mdx +13 -0
- package/docs/self-hosting/faq/no-v1-suffix.zh-CN.mdx +10 -0
- package/docs/self-hosting/faq/proxy-with-unable-to-verify-leaf-signature.mdx +15 -0
- package/docs/self-hosting/faq/proxy-with-unable-to-verify-leaf-signature.zh-CN.mdx +12 -0
- package/docs/self-hosting/platform/docker-compose.mdx +103 -80
- package/docs/self-hosting/platform/docker-compose.zh-CN.mdx +92 -73
- package/docs/self-hosting/platform/docker.mdx +107 -89
- package/docs/self-hosting/platform/docker.zh-CN.mdx +106 -89
- package/docs/self-hosting/platform/netlify.mdx +109 -44
- package/docs/self-hosting/platform/netlify.zh-CN.mdx +102 -39
- package/docs/self-hosting/platform/railway.mdx +20 -6
- package/docs/self-hosting/platform/railway.zh-CN.mdx +19 -6
- package/docs/self-hosting/platform/repocloud.mdx +20 -6
- package/docs/self-hosting/platform/repocloud.zh-CN.mdx +18 -6
- package/docs/self-hosting/platform/sealos.mdx +19 -6
- package/docs/self-hosting/platform/sealos.zh-CN.mdx +18 -6
- package/docs/self-hosting/platform/vercel.mdx +21 -7
- package/docs/self-hosting/platform/vercel.zh-CN.mdx +20 -7
- package/docs/self-hosting/platform/zeabur.mdx +19 -6
- package/docs/self-hosting/platform/zeabur.zh-CN.mdx +18 -6
- package/docs/self-hosting/start.mdx +23 -1
- package/docs/self-hosting/start.zh-CN.mdx +15 -1
- package/docs/usage/agents/concepts.mdx +26 -2
- package/docs/usage/agents/concepts.zh-CN.mdx +23 -2
- package/docs/usage/agents/custom-agent.mdx +25 -4
- package/docs/usage/agents/custom-agent.zh-CN.mdx +22 -6
- package/docs/usage/agents/model.mdx +14 -5
- package/docs/usage/agents/model.zh-CN.mdx +18 -5
- package/docs/usage/agents/prompt.mdx +22 -5
- package/docs/usage/agents/prompt.zh-CN.mdx +17 -5
- package/docs/usage/agents/topics.mdx +22 -1
- package/docs/usage/agents/topics.zh-CN.mdx +20 -1
- package/docs/usage/features/agent-market.mdx +16 -6
- package/docs/usage/features/agent-market.zh-CN.mdx +14 -0
- package/docs/usage/features/local-llm.mdx +18 -3
- package/docs/usage/features/local-llm.zh-CN.mdx +9 -4
- package/docs/usage/features/mobile.mdx +15 -2
- package/docs/usage/features/mobile.zh-CN.mdx +17 -1
- package/docs/usage/features/more.mdx +14 -0
- package/docs/usage/features/more.zh-CN.mdx +11 -0
- package/docs/usage/features/multi-ai-providers.mdx +25 -3
- package/docs/usage/features/multi-ai-providers.zh-CN.mdx +28 -2
- package/docs/usage/features/plugin-system.mdx +20 -8
- package/docs/usage/features/plugin-system.zh-CN.mdx +18 -7
- package/docs/usage/features/pwa.mdx +21 -5
- package/docs/usage/features/pwa.zh-CN.mdx +24 -4
- package/docs/usage/features/text-to-image.mdx +11 -1
- package/docs/usage/features/text-to-image.zh-CN.mdx +14 -0
- package/docs/usage/features/theme.mdx +18 -2
- package/docs/usage/features/theme.zh-CN.mdx +18 -1
- package/docs/usage/features/tts.mdx +14 -1
- package/docs/usage/features/tts.zh-CN.mdx +13 -0
- package/docs/usage/features/vision.mdx +11 -1
- package/docs/usage/features/vision.zh-CN.mdx +11 -0
- package/docs/usage/plugins/basic-usage.mdx +43 -7
- package/docs/usage/plugins/basic-usage.zh-CN.mdx +41 -7
- package/docs/usage/plugins/custom-plugin.mdx +13 -0
- package/docs/usage/plugins/custom-plugin.zh-CN.mdx +11 -0
- package/docs/usage/plugins/development.mdx +97 -30
- package/docs/usage/plugins/development.zh-CN.mdx +92 -31
- package/docs/usage/plugins/store.mdx +23 -2
- package/docs/usage/plugins/store.zh-CN.mdx +20 -2
- package/docs/usage/providers/groq.mdx +45 -13
- package/docs/usage/providers/groq.zh-CN.mdx +41 -13
- package/docs/usage/providers/ollama/gemma.mdx +40 -14
- package/docs/usage/providers/ollama/gemma.zh-CN.mdx +40 -14
- package/docs/usage/providers/ollama/qwen.mdx +41 -19
- package/docs/usage/providers/ollama/qwen.zh-CN.mdx +35 -14
- package/docs/usage/providers/ollama.mdx +44 -21
- package/docs/usage/providers/ollama.zh-CN.mdx +45 -21
- package/docs/usage/start.mdx +13 -2
- package/docs/usage/start.zh-CN.mdx +11 -2
- package/locales/ar/common.json +0 -26
- package/locales/ar/components.json +15 -0
- package/locales/ar/error.json +1 -52
- package/locales/ar/modelProvider.json +226 -0
- package/locales/ar/setting.json +48 -199
- package/locales/bg-BG/common.json +0 -26
- package/locales/bg-BG/components.json +15 -0
- package/locales/bg-BG/error.json +1 -52
- package/locales/bg-BG/modelProvider.json +226 -0
- package/locales/bg-BG/setting.json +48 -199
- package/locales/de-DE/common.json +0 -26
- package/locales/de-DE/components.json +15 -0
- package/locales/de-DE/error.json +1 -52
- package/locales/de-DE/modelProvider.json +226 -0
- package/locales/de-DE/setting.json +48 -199
- package/locales/en-US/common.json +0 -26
- package/locales/en-US/components.json +15 -0
- package/locales/en-US/error.json +1 -52
- package/locales/en-US/modelProvider.json +226 -0
- package/locales/en-US/setting.json +48 -199
- package/locales/es-ES/common.json +0 -26
- package/locales/es-ES/components.json +15 -0
- package/locales/es-ES/error.json +1 -52
- package/locales/es-ES/modelProvider.json +226 -0
- package/locales/es-ES/setting.json +48 -199
- package/locales/fr-FR/common.json +0 -26
- package/locales/fr-FR/components.json +15 -0
- package/locales/fr-FR/error.json +1 -52
- package/locales/fr-FR/modelProvider.json +226 -0
- package/locales/fr-FR/setting.json +48 -199
- package/locales/it-IT/common.json +0 -26
- package/locales/it-IT/components.json +15 -0
- package/locales/it-IT/error.json +1 -52
- package/locales/it-IT/modelProvider.json +226 -0
- package/locales/it-IT/setting.json +59 -210
- package/locales/ja-JP/common.json +0 -26
- package/locales/ja-JP/components.json +15 -0
- package/locales/ja-JP/error.json +1 -52
- package/locales/ja-JP/modelProvider.json +226 -0
- package/locales/ja-JP/setting.json +59 -210
- package/locales/ko-KR/common.json +0 -26
- package/locales/ko-KR/components.json +15 -0
- package/locales/ko-KR/error.json +1 -52
- package/locales/ko-KR/modelProvider.json +226 -0
- package/locales/ko-KR/setting.json +48 -199
- package/locales/nl-NL/common.json +0 -26
- package/locales/nl-NL/components.json +15 -0
- package/locales/nl-NL/error.json +4 -55
- package/locales/nl-NL/modelProvider.json +226 -0
- package/locales/nl-NL/setting.json +49 -200
- package/locales/pl-PL/common.json +0 -26
- package/locales/pl-PL/components.json +15 -0
- package/locales/pl-PL/error.json +1 -52
- package/locales/pl-PL/modelProvider.json +226 -0
- package/locales/pl-PL/setting.json +48 -199
- package/locales/pt-BR/common.json +0 -26
- package/locales/pt-BR/components.json +15 -0
- package/locales/pt-BR/error.json +1 -52
- package/locales/pt-BR/modelProvider.json +226 -0
- package/locales/pt-BR/setting.json +48 -199
- package/locales/ru-RU/common.json +0 -26
- package/locales/ru-RU/components.json +15 -0
- package/locales/ru-RU/error.json +1 -52
- package/locales/ru-RU/modelProvider.json +226 -0
- package/locales/ru-RU/setting.json +48 -199
- package/locales/tr-TR/common.json +0 -26
- package/locales/tr-TR/components.json +15 -0
- package/locales/tr-TR/error.json +1 -52
- package/locales/tr-TR/modelProvider.json +226 -0
- package/locales/tr-TR/setting.json +48 -199
- package/locales/vi-VN/common.json +0 -26
- package/locales/vi-VN/components.json +15 -0
- package/locales/vi-VN/error.json +1 -52
- package/locales/vi-VN/modelProvider.json +226 -0
- package/locales/vi-VN/setting.json +48 -199
- package/locales/zh-CN/common.json +0 -26
- package/locales/zh-CN/components.json +15 -0
- package/locales/zh-CN/error.json +2 -53
- package/locales/zh-CN/modelProvider.json +226 -0
- package/locales/zh-CN/setting.json +48 -199
- package/locales/zh-TW/common.json +0 -26
- package/locales/zh-TW/components.json +15 -0
- package/locales/zh-TW/error.json +1 -52
- package/locales/zh-TW/modelProvider.json +226 -0
- package/locales/zh-TW/setting.json +48 -199
- package/package.json +120 -116
- package/scripts/mdxWorkflow/index.ts +48 -0
- package/src/app/api/chat/[provider]/route.test.ts +4 -9
- package/src/app/api/chat/[provider]/route.ts +6 -23
- package/src/app/api/chat/{[provider]/agentRuntime.test.ts → agentRuntime.test.ts} +12 -12
- package/src/app/api/chat/{[provider]/agentRuntime.ts → agentRuntime.ts} +11 -30
- package/src/app/api/chat/auth/index.ts +42 -0
- package/src/app/api/chat/models/[provider]/route.ts +45 -0
- package/src/app/api/config/__snapshots__/route.test.ts.snap +127 -0
- package/src/app/api/config/route.test.ts +170 -0
- package/src/app/api/config/route.ts +46 -11
- package/src/app/api/plugin/gateway/route.ts +1 -1
- package/src/app/settings/llm/Azure/index.tsx +36 -43
- package/src/app/settings/llm/Bedrock/index.tsx +12 -20
- package/src/app/settings/llm/Ollama/index.tsx +2 -2
- package/src/app/settings/llm/OpenAI/index.tsx +9 -121
- package/src/app/settings/llm/OpenRouter/index.tsx +1 -1
- package/src/app/settings/llm/TogetherAI/index.tsx +0 -1
- package/src/app/settings/llm/components/ProviderConfig/index.tsx +48 -32
- package/src/app/settings/llm/components/ProviderModelList/CustomModelOption.tsx +94 -0
- package/src/app/settings/llm/components/ProviderModelList/MaxTokenSlider.tsx +88 -0
- package/src/app/settings/llm/components/ProviderModelList/ModelConfigModal.tsx +128 -0
- package/src/app/settings/llm/components/ProviderModelList/ModelFetcher.tsx +81 -0
- package/src/app/settings/llm/components/ProviderModelList/Option.tsx +38 -0
- package/src/app/settings/llm/components/ProviderModelList/index.tsx +142 -0
- package/src/app/settings/llm/const.ts +1 -1
- package/src/app/settings/llm/index.tsx +7 -6
- package/src/app/settings/tts/TTS/index.tsx +1 -1
- package/src/components/AntdStaticMethods/index.test.tsx +43 -0
- package/src/components/ModelIcon/index.tsx +25 -7
- package/src/components/ModelSelect/index.tsx +67 -56
- package/src/config/modelProviders/anthropic.ts +6 -1
- package/src/config/modelProviders/azure.ts +42 -0
- package/src/config/modelProviders/bedrock.ts +4 -1
- package/src/config/modelProviders/google.ts +2 -14
- package/src/config/modelProviders/groq.ts +3 -0
- package/src/config/modelProviders/index.ts +19 -14
- package/src/config/modelProviders/mistral.ts +5 -0
- package/src/config/modelProviders/moonshot.ts +3 -1
- package/src/config/modelProviders/ollama.ts +6 -17
- package/src/config/modelProviders/openai.ts +9 -13
- package/src/config/modelProviders/openrouter.ts +6 -1
- package/src/config/modelProviders/perplexity.ts +2 -0
- package/src/config/modelProviders/togetherai.ts +11 -0
- package/src/config/modelProviders/zeroone.ts +3 -0
- package/src/config/modelProviders/zhipu.ts +3 -0
- package/src/config/server/provider.ts +52 -7
- package/src/const/auth.ts +0 -1
- package/src/const/{settings.ts → settings/index.ts} +31 -4
- package/src/const/url.ts +1 -1
- package/src/database/core/db.ts +14 -0
- package/src/database/schemas/user.ts +1 -25
- package/src/features/AgentSetting/AgentConfig/ModelSelect.tsx +7 -11
- package/src/features/ChatInput/STT/common.tsx +80 -78
- package/src/features/ChatInput/STT/index.tsx +8 -6
- package/src/features/Conversation/Error/APIKeyForm/Bedrock.tsx +8 -8
- package/src/features/Conversation/Error/APIKeyForm/ProviderApiKeyForm.tsx +73 -0
- package/src/features/Conversation/Error/APIKeyForm/ProviderAvatar.tsx +74 -0
- package/src/features/Conversation/Error/APIKeyForm/index.tsx +25 -49
- package/src/features/ModelSwitchPanel/index.tsx +40 -13
- package/src/hooks/_header.ts +5 -20
- package/src/libs/agent-runtime/BaseAI.ts +17 -1
- package/src/libs/agent-runtime/anthropic/index.ts +3 -7
- package/src/libs/agent-runtime/azureOpenai/index.test.ts +166 -0
- package/src/libs/agent-runtime/azureOpenai/index.ts +16 -8
- package/src/libs/agent-runtime/bedrock/index.test.ts +199 -22
- package/src/libs/agent-runtime/bedrock/index.ts +11 -18
- package/src/libs/agent-runtime/groq/index.test.ts +350 -0
- package/src/libs/agent-runtime/groq/index.ts +14 -77
- package/src/libs/agent-runtime/mistral/index.test.ts +25 -19
- package/src/libs/agent-runtime/mistral/index.ts +24 -86
- package/src/libs/agent-runtime/moonshot/index.test.ts +2 -2
- package/src/libs/agent-runtime/moonshot/index.ts +14 -77
- package/src/libs/agent-runtime/openai/__snapshots__/index.test.ts.snap +99 -0
- package/src/libs/agent-runtime/openai/fixtures/openai-models.json +170 -0
- package/src/libs/agent-runtime/openai/index.test.ts +15 -50
- package/src/libs/agent-runtime/openai/index.ts +15 -107
- package/src/libs/agent-runtime/openrouter/__snapshots__/index.test.ts.snap +82 -0
- package/src/libs/agent-runtime/openrouter/fixtures/models.json +62 -0
- package/src/libs/agent-runtime/openrouter/index.test.ts +25 -9
- package/src/libs/agent-runtime/openrouter/index.ts +42 -84
- package/src/libs/agent-runtime/openrouter/type.ts +28 -0
- package/src/libs/agent-runtime/togetherai/index.test.ts +12 -9
- package/src/libs/agent-runtime/togetherai/index.ts +20 -85
- package/src/libs/agent-runtime/utils/anthropicHelpers.test.ts +14 -22
- package/src/libs/agent-runtime/utils/anthropicHelpers.ts +4 -10
- package/src/libs/agent-runtime/utils/openaiCompatibleFactory/index.ts +147 -0
- package/src/libs/agent-runtime/zeroone/index.test.ts +350 -0
- package/src/libs/agent-runtime/zeroone/index.ts +14 -77
- package/src/locales/default/common.ts +0 -28
- package/src/locales/default/components.ts +15 -0
- package/src/locales/default/error.ts +2 -54
- package/src/locales/default/index.ts +4 -0
- package/src/locales/default/modelProvider.ts +229 -0
- package/src/locales/default/setting.ts +51 -202
- package/src/locales/resources.test.ts +49 -0
- package/src/locales/resources.ts +7 -20
- package/src/migrations/FromV3ToV4/fixtures/azure-input-v3.json +79 -0
- package/src/migrations/FromV3ToV4/fixtures/azure-output-v4.json +75 -0
- package/src/migrations/FromV3ToV4/fixtures/ollama-input-v3.json +85 -0
- package/src/migrations/FromV3ToV4/fixtures/ollama-output-v4.json +86 -0
- package/src/migrations/FromV3ToV4/fixtures/openai-input-v3.json +77 -0
- package/src/migrations/FromV3ToV4/fixtures/openai-output-v4.json +79 -0
- package/src/migrations/FromV3ToV4/fixtures/openrouter-input-v3.json +82 -0
- package/src/migrations/FromV3ToV4/fixtures/openrouter-output-v4.json +89 -0
- package/src/migrations/FromV3ToV4/fixtures/output-v4-from-v1.json +203 -0
- package/src/migrations/FromV3ToV4/index.ts +96 -0
- package/src/migrations/FromV3ToV4/migrations.test.ts +195 -0
- package/src/migrations/FromV3ToV4/types/v3.ts +59 -0
- package/src/migrations/FromV3ToV4/types/v4.ts +37 -0
- package/src/migrations/index.ts +11 -3
- package/src/services/_auth.test.ts +4 -6
- package/src/services/_auth.ts +8 -60
- package/src/services/_header.ts +5 -22
- package/src/services/_url.ts +1 -0
- package/src/services/chat.ts +16 -6
- package/src/services/global.ts +1 -1
- package/src/services/models.ts +23 -0
- package/src/services/ollama.ts +2 -2
- package/src/store/chat/slices/share/action.test.ts +113 -0
- package/src/store/chat/slices/share/action.ts +1 -1
- package/src/store/global/slices/common/action.test.ts +166 -1
- package/src/store/global/slices/common/action.ts +2 -1
- package/src/store/global/slices/settings/{action.test.ts → actions/general.test.ts} +1 -19
- package/src/store/global/slices/settings/{action.ts → actions/general.ts} +4 -19
- package/src/store/global/slices/settings/actions/index.ts +18 -0
- package/src/store/global/slices/settings/actions/llm.test.ts +60 -0
- package/src/store/global/slices/settings/actions/llm.ts +88 -0
- package/src/store/global/slices/settings/initialState.ts +3 -1
- package/src/store/global/slices/settings/reducers/customModelCard.test.ts +204 -0
- package/src/store/global/slices/settings/reducers/customModelCard.ts +64 -0
- package/src/store/global/slices/settings/selectors/index.ts +1 -0
- package/src/store/global/slices/settings/selectors/modelConfig.test.ts +189 -0
- package/src/store/global/slices/settings/selectors/modelConfig.ts +179 -0
- package/src/store/global/slices/settings/selectors/modelProvider.test.ts +47 -138
- package/src/store/global/slices/settings/selectors/modelProvider.ts +102 -243
- package/src/store/global/store.ts +1 -1
- package/src/types/llm.ts +12 -1
- package/src/types/serverConfig.ts +22 -0
- package/src/types/settings/index.ts +0 -12
- package/src/types/settings/modelProvider.ts +34 -90
- package/src/utils/client/switchLang.test.ts +34 -0
- package/src/utils/difference.test.ts +46 -0
- package/src/utils/difference.ts +15 -2
- package/src/utils/fetch.ts +1 -3
- package/src/utils/parseModels.ts +62 -0
- package/vercel.json +1 -1
- package/docs/package.json +0 -5
- package/src/features/Conversation/Error/APIKeyForm/Anthropic.tsx +0 -40
- package/src/features/Conversation/Error/APIKeyForm/Google.tsx +0 -61
- package/src/features/Conversation/Error/APIKeyForm/Groq.tsx +0 -60
- package/src/features/Conversation/Error/APIKeyForm/Mistral.tsx +0 -60
- package/src/features/Conversation/Error/APIKeyForm/Moonshot.tsx +0 -60
- package/src/features/Conversation/Error/APIKeyForm/OpenAI.tsx +0 -63
- package/src/features/Conversation/Error/APIKeyForm/OpenRouter.tsx +0 -40
- package/src/features/Conversation/Error/APIKeyForm/Perplexity.tsx +0 -60
- package/src/features/Conversation/Error/APIKeyForm/TogetherAI.tsx +0 -40
- package/src/features/Conversation/Error/APIKeyForm/ZeroOne.tsx +0 -60
- package/src/features/Conversation/Error/APIKeyForm/Zhipu.tsx +0 -62
- package/src/libs/agent-runtime/utils/env.ts +0 -1
- package/src/store/global/slices/settings/selectors/__snapshots__/modelProvider.test.ts.snap +0 -230
- /package/src/app/api/chat/{auth.ts → auth/utils.ts} +0 -0
- /package/src/components/{AntdStaticMethods.tsx → AntdStaticMethods/index.tsx} +0 -0
package/.env.example
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
# add a access code to lock your lobe-chat application, you can set a long password to avoid leaking. If this value contains a comma, it is a password array.
|
|
2
2
|
#ACCESS_CODE=lobe66
|
|
3
3
|
|
|
4
|
-
# add your custom model name, multi model separate by comma. for example gpt-3.5-1106,gpt-4-1106
|
|
5
|
-
# CUSTOM_MODELS=model1,model2,model3
|
|
6
|
-
|
|
7
4
|
# Specify your API Key selection method, currently supporting `random` and `turn`.
|
|
8
5
|
# API_KEY_SELECT_MODE=random
|
|
9
6
|
|
|
10
|
-
# ---- only choose one from OpenAI Service and Azure OpenAI Service ---- #
|
|
11
7
|
|
|
12
8
|
########################################
|
|
13
9
|
############ OpenAI Service ############
|
|
@@ -19,13 +15,15 @@ OPENAI_API_KEY=sk-xxxxxxxxx
|
|
|
19
15
|
# use a proxy to connect to the OpenAI API
|
|
20
16
|
# OPENAI_PROXY_URL=https://api.openai.com/v1
|
|
21
17
|
|
|
18
|
+
# add your custom model name, multi model separate by comma. for example gpt-3.5-1106,gpt-4-1106
|
|
19
|
+
#OPENAI_ENABLED_MODELS=gpt-3.5-turbo
|
|
20
|
+
|
|
22
21
|
########################################
|
|
23
22
|
######### Azure OpenAI Service #########
|
|
24
23
|
########################################
|
|
25
24
|
# you can learn azure OpenAI Service on https://learn.microsoft.com/en-us/azure/ai-services/openai/overview
|
|
26
25
|
|
|
27
26
|
# use Azure OpenAI Service by uncomment the following line
|
|
28
|
-
# USE_AZURE_OPENAI=1
|
|
29
27
|
|
|
30
28
|
# The API key you applied for on the Azure OpenAI account page, which can be found in the "Keys and Endpoints" section.
|
|
31
29
|
# AZURE_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
@@ -10,7 +10,7 @@ jobs:
|
|
|
10
10
|
- name: Install bun
|
|
11
11
|
uses: oven-sh/setup-bun@v1
|
|
12
12
|
with:
|
|
13
|
-
|
|
13
|
+
bun-version: ${{ secrets.BUN_VERSION }}
|
|
14
14
|
|
|
15
15
|
- name: Install deps
|
|
16
16
|
run: bun i
|
|
@@ -23,3 +23,5 @@ jobs:
|
|
|
23
23
|
|
|
24
24
|
- name: Upload coverage to Codecov
|
|
25
25
|
uses: codecov/codecov-action@v4
|
|
26
|
+
with:
|
|
27
|
+
token: ${{ secrets.CODECOV_TOKEN }} # required
|
package/.i18nrc.js
CHANGED
|
@@ -23,20 +23,25 @@ module.exports = defineConfig({
|
|
|
23
23
|
'vi-VN',
|
|
24
24
|
],
|
|
25
25
|
temperature: 0,
|
|
26
|
-
modelName: 'gpt-3.5-turbo-
|
|
27
|
-
splitToken:
|
|
26
|
+
modelName: 'gpt-3.5-turbo-0125',
|
|
27
|
+
splitToken: 2048,
|
|
28
28
|
experimental: {
|
|
29
29
|
jsonMode: true,
|
|
30
30
|
},
|
|
31
|
-
reference: '你需要保持 mdx 的组件格式,输出文本不需要在最外层包裹任何代码块语法',
|
|
32
31
|
markdown: {
|
|
33
|
-
|
|
32
|
+
// reference: '你需要保持 mdx 的组件格式,输出文本不需要在最外层包裹任何代码块语法',
|
|
33
|
+
entry: ['./README.zh-CN.md', './contributing/**/*.zh-CN.md', './docs/**/*.zh-CN.mdx'],
|
|
34
34
|
entryLocale: 'zh-CN',
|
|
35
|
-
entryExtension: '.zh-CN.md',
|
|
36
35
|
outputLocales: ['en-US'],
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
exclude: ['./contributing/_Sidebar.md', './contributing/_Footer.md', './contributing/Home.md'],
|
|
37
|
+
outputExtensions: (locale, { filePath }) => {
|
|
38
|
+
if (filePath.includes('.mdx')) {
|
|
39
|
+
if (locale === 'en-US') return '.mdx';
|
|
40
|
+
return `.${locale}.mdx`;
|
|
41
|
+
} else {
|
|
42
|
+
if (locale === 'en-US') return '.md';
|
|
43
|
+
return `.${locale}.md`;
|
|
44
|
+
}
|
|
40
45
|
},
|
|
41
46
|
},
|
|
42
47
|
});
|
package/.seorc.cjs
ADDED
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,104 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
### [Version 0.147.1](https://github.com/lobehub/lobe-chat/compare/v0.147.0...v0.147.1)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2024-04-11**</sup>
|
|
8
|
+
|
|
9
|
+
#### 🐛 Bug Fixes
|
|
10
|
+
|
|
11
|
+
- **misc**: Fix normalizeLocale with first matching locale.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### What's fixed
|
|
19
|
+
|
|
20
|
+
- **misc**: Fix normalizeLocale with first matching locale, closes [#1767](https://github.com/lobehub/lobe-chat/issues/1767) ([182ff23](https://github.com/lobehub/lobe-chat/commit/182ff23))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
## [Version 0.147.0](https://github.com/lobehub/lobe-chat/compare/v0.146.2...v0.147.0)
|
|
31
|
+
|
|
32
|
+
<sup>Released on **2024-04-10**</sup>
|
|
33
|
+
|
|
34
|
+
#### ♻ Code Refactoring
|
|
35
|
+
|
|
36
|
+
- **misc**: Add db migration, add migrations from v3 to v4, clean openai azure code, refactor agent runtime with openai compatible factory, refactor api key form locale, refactor openAI to openai and azure, refactor the hidden to enabled, refactor the key, refactor the model config selector, refactor the route auth as a middleware, refactor the server config to migrate model provider env, refactor the server config to migrate model provider env, rename the key to enabledModels.
|
|
37
|
+
|
|
38
|
+
#### ✨ Features
|
|
39
|
+
|
|
40
|
+
- **misc**: Refactor to support azure openai provider, support close openai, support display model list, support model config modal, support model list with model providers, support open router auto model list, support openai model fetcher, support update model config, support user config model.
|
|
41
|
+
|
|
42
|
+
#### 🐛 Bug Fixes
|
|
43
|
+
|
|
44
|
+
- **misc**: Fix db migration, fix db migration.
|
|
45
|
+
|
|
46
|
+
#### 💄 Styles
|
|
47
|
+
|
|
48
|
+
- **misc**: Fix i18n of model list fetcher, improve detail design, improve logo style, update locale.
|
|
49
|
+
|
|
50
|
+
<br/>
|
|
51
|
+
|
|
52
|
+
<details>
|
|
53
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
54
|
+
|
|
55
|
+
#### Code refactoring
|
|
56
|
+
|
|
57
|
+
- **misc**: Add db migration ([6ceb818](https://github.com/lobehub/lobe-chat/commit/6ceb818))
|
|
58
|
+
- **misc**: Add migrations from v3 to v4 ([199ded2](https://github.com/lobehub/lobe-chat/commit/199ded2))
|
|
59
|
+
- **misc**: Clean openai azure code ([be4bcca](https://github.com/lobehub/lobe-chat/commit/be4bcca))
|
|
60
|
+
- **misc**: Refactor agent runtime with openai compatible factory ([89adf9d](https://github.com/lobehub/lobe-chat/commit/89adf9d))
|
|
61
|
+
- **misc**: Refactor api key form locale ([a069169](https://github.com/lobehub/lobe-chat/commit/a069169))
|
|
62
|
+
- **misc**: Refactor openAI to openai and azure ([2190a95](https://github.com/lobehub/lobe-chat/commit/2190a95))
|
|
63
|
+
- **misc**: Refactor the hidden to enabled ([78a1aac](https://github.com/lobehub/lobe-chat/commit/78a1aac))
|
|
64
|
+
- **misc**: Refactor the key ([d5c82f6](https://github.com/lobehub/lobe-chat/commit/d5c82f6))
|
|
65
|
+
- **misc**: Refactor the model config selector ([d865ca1](https://github.com/lobehub/lobe-chat/commit/d865ca1))
|
|
66
|
+
- **misc**: Refactor the route auth as a middleware ([ef5ee2a](https://github.com/lobehub/lobe-chat/commit/ef5ee2a))
|
|
67
|
+
- **misc**: Refactor the server config to migrate model provider env ([e4f110e](https://github.com/lobehub/lobe-chat/commit/e4f110e))
|
|
68
|
+
- **misc**: Refactor the server config to migrate model provider env ([c398063](https://github.com/lobehub/lobe-chat/commit/c398063))
|
|
69
|
+
- **misc**: Rename the key to enabledModels ([ebfa0aa](https://github.com/lobehub/lobe-chat/commit/ebfa0aa))
|
|
70
|
+
|
|
71
|
+
#### What's improved
|
|
72
|
+
|
|
73
|
+
- **misc**: Refactor to support azure openai provider ([d737afe](https://github.com/lobehub/lobe-chat/commit/d737afe))
|
|
74
|
+
- **misc**: Support close openai ([1ff1aef](https://github.com/lobehub/lobe-chat/commit/1ff1aef))
|
|
75
|
+
- **misc**: Support display model list ([e59635f](https://github.com/lobehub/lobe-chat/commit/e59635f))
|
|
76
|
+
- **misc**: Support model config modal ([62d6bb7](https://github.com/lobehub/lobe-chat/commit/62d6bb7))
|
|
77
|
+
- **misc**: Support model list with model providers, closes [#1916](https://github.com/lobehub/lobe-chat/issues/1916) ([0895dd2](https://github.com/lobehub/lobe-chat/commit/0895dd2))
|
|
78
|
+
- **misc**: Support open router auto model list ([1ba90d3](https://github.com/lobehub/lobe-chat/commit/1ba90d3))
|
|
79
|
+
- **misc**: Support openai model fetcher ([56032e6](https://github.com/lobehub/lobe-chat/commit/56032e6))
|
|
80
|
+
- **misc**: Support update model config ([e8ed847](https://github.com/lobehub/lobe-chat/commit/e8ed847))
|
|
81
|
+
- **misc**: Support user config model ([72fd873](https://github.com/lobehub/lobe-chat/commit/72fd873))
|
|
82
|
+
|
|
83
|
+
#### What's fixed
|
|
84
|
+
|
|
85
|
+
- **misc**: Fix db migration ([4e75074](https://github.com/lobehub/lobe-chat/commit/4e75074))
|
|
86
|
+
- **misc**: Fix db migration ([571b6dd](https://github.com/lobehub/lobe-chat/commit/571b6dd))
|
|
87
|
+
|
|
88
|
+
#### Styles
|
|
89
|
+
|
|
90
|
+
- **misc**: Fix i18n of model list fetcher ([67ed8c2](https://github.com/lobehub/lobe-chat/commit/67ed8c2))
|
|
91
|
+
- **misc**: Improve detail design ([adcce07](https://github.com/lobehub/lobe-chat/commit/adcce07))
|
|
92
|
+
- **misc**: Improve logo style ([c5826ce](https://github.com/lobehub/lobe-chat/commit/c5826ce))
|
|
93
|
+
- **misc**: Update locale ([021bf91](https://github.com/lobehub/lobe-chat/commit/021bf91))
|
|
94
|
+
|
|
95
|
+
</details>
|
|
96
|
+
|
|
97
|
+
<div align="right">
|
|
98
|
+
|
|
99
|
+
[](#readme-top)
|
|
100
|
+
|
|
101
|
+
</div>
|
|
102
|
+
|
|
5
103
|
### [Version 0.146.2](https://github.com/lobehub/lobe-chat/compare/v0.146.1...v0.146.2)
|
|
6
104
|
|
|
7
105
|
<sup>Released on **2024-04-10**</sup>
|
package/README.md
CHANGED
|
@@ -259,14 +259,14 @@ Our marketplace is not just a showcase platform but also a collaborative space.
|
|
|
259
259
|
|
|
260
260
|
<!-- AGENT LIST -->
|
|
261
261
|
|
|
262
|
-
| Recent Submits
|
|
263
|
-
|
|
|
264
|
-
| [
|
|
265
|
-
| [
|
|
266
|
-
| [
|
|
267
|
-
| [
|
|
262
|
+
| Recent Submits | Description |
|
|
263
|
+
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
264
|
+
| [Dirty Talk Learning Assistant](https://chat-preview.lobehub.com/market?agent=profanity-assistant)<br/><sup>By **[cokice](https://github.com/cokice)** on **2024-04-10**</sup> | I only know how to curse, nothing else.<br/>`answer` `dirty-talk` |
|
|
265
|
+
| [TadzGenius](https://chat-preview.lobehub.com/market?agent=tadz-genius)<br/><sup>By **[infoaitek24](https://github.com/infoaitek24)** on **2024-04-10**</sup> | Expert in business development and development practices in the Philippine market<br/>`business-development` `ai-assistant` `market-analysis` `strategic-planning` `customer-acquisition` |
|
|
266
|
+
| [Microcontroller Engineer](https://chat-preview.lobehub.com/market?agent=with-keil-u-vision-5-c-code-explainer)<br/><sup>By **[bingjuu](https://github.com/bingjuu)** on **2024-04-10**</sup> | Proficient in interpreting embedded C code using Keil uVision 5 and Proteus<br/>`microcontroller` `c-code` `education` `interpretation` `embedded-systems` |
|
|
267
|
+
| [Design Philosophy Analysis](https://chat-preview.lobehub.com/market?agent=sixin-design-analysis)<br/><sup>By **[YuJiaoChiu](https://github.com/YuJiaoChiu)** on **2024-04-09**</sup> | Helps you identify and analyze architectural design philosophies<br/>`arch` |
|
|
268
268
|
|
|
269
|
-
> 📊 Total agents: [<kbd>**
|
|
269
|
+
> 📊 Total agents: [<kbd>**234**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
|
|
270
270
|
|
|
271
271
|
<!-- AGENT LIST -->
|
|
272
272
|
|
|
@@ -656,27 +656,27 @@ This project is [MIT](./LICENSE) licensed.
|
|
|
656
656
|
[docker-release-shield]: https://img.shields.io/docker/v/lobehub/lobe-chat?color=369eff&label=docker&labelColor=black&logo=docker&logoColor=white&style=flat-square
|
|
657
657
|
[docker-size-link]: https://hub.docker.com/r/lobehub/lobe-chat
|
|
658
658
|
[docker-size-shield]: https://img.shields.io/docker/image-size/lobehub/lobe-chat?color=369eff&labelColor=black&style=flat-square
|
|
659
|
-
[docs]: https://
|
|
659
|
+
[docs]: https://lobehub.com/docs
|
|
660
660
|
[docs-dev-guide]: https://github.com/lobehub/lobe-chat/wiki/index
|
|
661
|
-
[docs-docker]: https://
|
|
662
|
-
[docs-env-var]: https://
|
|
663
|
-
[docs-feat-agent]: https://
|
|
664
|
-
[docs-feat-local]: https://
|
|
665
|
-
[docs-feat-mobile]: https://
|
|
666
|
-
[docs-feat-plugin]: https://
|
|
667
|
-
[docs-feat-provider]: https://
|
|
668
|
-
[docs-feat-pwa]: https://
|
|
669
|
-
[docs-feat-t2i]: https://
|
|
670
|
-
[docs-feat-theme]: https://
|
|
671
|
-
[docs-feat-tts]: https://
|
|
672
|
-
[docs-feat-vision]: https://
|
|
661
|
+
[docs-docker]: https://lobehub.com/docs/self-hosting/platform/docker
|
|
662
|
+
[docs-env-var]: https://lobehub.com/docs/self-hosting/environment-variables
|
|
663
|
+
[docs-feat-agent]: https://lobehub.com/docs/usage/features/agent-market
|
|
664
|
+
[docs-feat-local]: https://lobehub.com/docs/usage/features/local-llm
|
|
665
|
+
[docs-feat-mobile]: https://lobehub.com/docs/usage/features/mobile
|
|
666
|
+
[docs-feat-plugin]: https://lobehub.com/docs/usage/features/plugin-system
|
|
667
|
+
[docs-feat-provider]: https://lobehub.com/docs/usage/features/multi-ai-providers
|
|
668
|
+
[docs-feat-pwa]: https://lobehub.com/docs/usage/features/pwa
|
|
669
|
+
[docs-feat-t2i]: https://lobehub.com/docs/usage/features/text-to-image
|
|
670
|
+
[docs-feat-theme]: https://lobehub.com/docs/usage/features/theme
|
|
671
|
+
[docs-feat-tts]: https://lobehub.com/docs/usage/features/tts
|
|
672
|
+
[docs-feat-vision]: https://lobehub.com/docs/usage/features/vision
|
|
673
673
|
[docs-functionc-call]: https://platform.openai.com/docs/guides/function-calling
|
|
674
674
|
[docs-lighthouse]: https://github.com/lobehub/lobe-chat/wiki/Lighthouse
|
|
675
|
-
[docs-plugin-dev]: https://
|
|
676
|
-
[docs-self-hosting]: https://
|
|
677
|
-
[docs-upstream-sync]: https://
|
|
678
|
-
[docs-usage-ollama]: https://
|
|
679
|
-
[docs-usage-plugin]: https://
|
|
675
|
+
[docs-plugin-dev]: https://lobehub.com/docs/usage/plugins/development
|
|
676
|
+
[docs-self-hosting]: https://lobehub.com/docs/self-hosting/start
|
|
677
|
+
[docs-upstream-sync]: https://lobehub.com/docs/self-hosting/advanced/upstream-sync
|
|
678
|
+
[docs-usage-ollama]: https://lobehub.com/docs/usage/providers/ollama
|
|
679
|
+
[docs-usage-plugin]: https://lobehub.com/docs/usage/plugins/basic
|
|
680
680
|
[fossa-license-link]: https://app.fossa.com/projects/git%2Bgithub.com%2Flobehub%2Flobe-chat
|
|
681
681
|
[fossa-license-shield]: https://app.fossa.com/api/projects/git%2Bgithub.com%2Flobehub%2Flobe-chat.svg?type=large
|
|
682
682
|
[github-action-release-link]: https://github.com/actions/workflows/lobehub/lobe-chat/release.yml
|
package/README.zh-CN.md
CHANGED
|
@@ -247,14 +247,14 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
|
|
|
247
247
|
|
|
248
248
|
<!-- AGENT LIST -->
|
|
249
249
|
|
|
250
|
-
| 最近新增
|
|
251
|
-
|
|
|
252
|
-
| [
|
|
253
|
-
| [
|
|
254
|
-
| [
|
|
255
|
-
| [
|
|
250
|
+
| 最近新增 | 助手说明 |
|
|
251
|
+
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
252
|
+
| [脏话学习助手](https://chat-preview.lobehub.com/market?agent=profanity-assistant)<br/><sup>By **[cokice](https://github.com/cokice)** on **2024-04-10**</sup> | 我只会骂人 别的都不会<br/>`回答` `脏话` |
|
|
253
|
+
| [TadzGenius](https://chat-preview.lobehub.com/market?agent=tadz-genius)<br/><sup>By **[infoaitek24](https://github.com/infoaitek24)** on **2024-04-10**</sup> | Expert in business development and development practices in the Philippine market<br/>`business-development` `ai-assistant` `market-analysis` `strategic-planning` `customer-acquisition` |
|
|
254
|
+
| [单片机工程师](https://chat-preview.lobehub.com/market?agent=with-keil-u-vision-5-c-code-explainer)<br/><sup>By **[bingjuu](https://github.com/bingjuu)** on **2024-04-10**</sup> | 擅长使用 Keil uVision 5 和 Proteus 的嵌入式 C 代码解释<br/>`单片机` `c代码` `教育` `解释` `嵌入式系统` |
|
|
255
|
+
| [设计理念分析](https://chat-preview.lobehub.com/market?agent=sixin-design-analysis)<br/><sup>By **[YuJiaoChiu](https://github.com/YuJiaoChiu)** on **2024-04-09**</sup> | 帮助你识图并分析建筑设计理念<br/>`arch` |
|
|
256
256
|
|
|
257
|
-
> 📊 Total agents: [<kbd>**
|
|
257
|
+
> 📊 Total agents: [<kbd>**234**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
|
|
258
258
|
|
|
259
259
|
<!-- AGENT LIST -->
|
|
260
260
|
|
|
@@ -678,25 +678,25 @@ This project is [MIT](./LICENSE) licensed.
|
|
|
678
678
|
[docker-size-link]: https://hub.docker.com/r/lobehub/lobe-chat
|
|
679
679
|
[docker-size-shield]: https://img.shields.io/docker/image-size/lobehub/lobe-chat?color=369eff&labelColor=black&style=flat-square
|
|
680
680
|
[docs-dev-guide]: https://github.com/lobehub/lobe-chat/wiki/index
|
|
681
|
-
[docs-docker]: https://
|
|
682
|
-
[docs-env-var]: https://
|
|
683
|
-
[docs-feat-agent]: https://
|
|
684
|
-
[docs-feat-local]: https://
|
|
685
|
-
[docs-feat-mobile]: https://
|
|
686
|
-
[docs-feat-plugin]: https://
|
|
687
|
-
[docs-feat-provider]: https://
|
|
688
|
-
[docs-feat-pwa]: https://
|
|
689
|
-
[docs-feat-t2i]: https://
|
|
690
|
-
[docs-feat-theme]: https://
|
|
691
|
-
[docs-feat-tts]: https://
|
|
692
|
-
[docs-feat-vision]: https://
|
|
681
|
+
[docs-docker]: https://lobehub.com/docs/self-hosting/platform/docker
|
|
682
|
+
[docs-env-var]: https://lobehub.com/docs/self-hosting/environment-variables
|
|
683
|
+
[docs-feat-agent]: https://lobehub.com/docs/usage/features/agent-market
|
|
684
|
+
[docs-feat-local]: https://lobehub.com/docs/usage/features/local-llm
|
|
685
|
+
[docs-feat-mobile]: https://lobehub.com/docs/usage/features/mobile
|
|
686
|
+
[docs-feat-plugin]: https://lobehub.com/docs/usage/features/plugin-system
|
|
687
|
+
[docs-feat-provider]: https://lobehub.com/docs/usage/features/multi-ai-providers
|
|
688
|
+
[docs-feat-pwa]: https://lobehub.com/docs/usage/features/pwa
|
|
689
|
+
[docs-feat-t2i]: https://lobehub.com/docs/usage/features/text-to-image
|
|
690
|
+
[docs-feat-theme]: https://lobehub.com/docs/usage/features/theme
|
|
691
|
+
[docs-feat-tts]: https://lobehub.com/docs/usage/features/tts
|
|
692
|
+
[docs-feat-vision]: https://lobehub.com/docs/usage/features/vision
|
|
693
693
|
[docs-functionc-call]: https://platform.openai.com/docs/guides/function-calling
|
|
694
694
|
[docs-lighthouse]: https://github.com/lobehub/lobe-chat/wiki/Lighthouse.zh-CN
|
|
695
|
-
[docs-plugin-dev]: https://
|
|
696
|
-
[docs-self-hosting]: https://
|
|
697
|
-
[docs-upstream-sync]: https://
|
|
698
|
-
[docs-usage-ollama]: https://
|
|
699
|
-
[docs-usage-plugin]: https://
|
|
695
|
+
[docs-plugin-dev]: https://lobehub.com/docs/usage/plugins/development
|
|
696
|
+
[docs-self-hosting]: https://lobehub.com/docs/self-hosting/start
|
|
697
|
+
[docs-upstream-sync]: https://lobehub.com/docs/self-hosting/advanced/upstream-sync
|
|
698
|
+
[docs-usage-ollama]: https://lobehub.com/docs/usage/providers/ollama
|
|
699
|
+
[docs-usage-plugin]: https://lobehub.com/docs/usage/plugins/basic
|
|
700
700
|
[fossa-license-link]: https://app.fossa.com/projects/git%2Bgithub.com%2Flobehub%2Flobe-chat
|
|
701
701
|
[fossa-license-shield]: https://app.fossa.com/api/projects/git%2Bgithub.com%2Flobehub%2Flobe-chat.svg?type=large
|
|
702
702
|
[github-action-release-link]: https://github.com/lobehub/lobe-chat/actions/workflows/release.yml
|
|
@@ -705,7 +705,7 @@ This project is [MIT](./LICENSE) licensed.
|
|
|
705
705
|
[github-action-test-shield]: https://img.shields.io/github/actions/workflow/status/lobehub/lobe-chat/test.yml?label=test&labelColor=black&logo=githubactions&logoColor=white&style=flat-square
|
|
706
706
|
[github-contributors-link]: https://github.com/lobehub/lobe-chat/graphs/contributors
|
|
707
707
|
[github-contributors-shield]: https://img.shields.io/github/contributors/lobehub/lobe-chat?color=c4f042&labelColor=black&style=flat-square
|
|
708
|
-
[github-document-link]: https://
|
|
708
|
+
[github-document-link]: https://lobehub.com/docs
|
|
709
709
|
[github-forks-link]: https://github.com/lobehub/lobe-chat/network/members
|
|
710
710
|
[github-forks-shield]: https://img.shields.io/github/forks/lobehub/lobe-chat?color=8ae8ff&labelColor=black&style=flat-square
|
|
711
711
|
[github-issues-link]: https://github.com/lobehub/lobe-chat/issues
|
package/contributing/Home.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
LobeChat is an open-source, extensible ([Function Calling][fc-url]), high-performance chatbot framework. <br/> It supports one-click free deployment of your private ChatGPT/LLM web application.
|
|
10
10
|
|
|
11
|
-
[Usage Documents](https://
|
|
11
|
+
[Usage Documents](https://lobehub.com/docs) | [使用指南](https://lobehub.com/docs)
|
|
12
12
|
|
|
13
13
|
</div>
|
|
14
14
|
|
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Integrating Data Analytics Services in LobeChat for User Usage Analysis
|
|
3
|
+
description: >-
|
|
4
|
+
Learn how to integrate free/open-source data analytics services in LobeChat to
|
|
5
|
+
collect user usage data efficiently.
|
|
6
|
+
tags:
|
|
7
|
+
- LobeChat
|
|
8
|
+
- data analytics
|
|
9
|
+
- user usage analysis
|
|
10
|
+
- Vercel Analytics
|
|
11
|
+
- web analytics
|
|
12
|
+
---
|
|
13
|
+
|
|
1
14
|
# Data Analysis
|
|
2
15
|
|
|
3
16
|
To better help analyze the usage of LobeChat users, we have integrated several free/open-source data analytics services in LobeChat for collecting user usage data, which you can enable as needed.
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: LobeChat 数据分析集成服务介绍
|
|
3
|
+
description: 了解如何在 LobeChat 中集成免费/开源的数据统计服务,帮助分析用户使用情况。包括 Vercel Analytics 的设置和使用教程。
|
|
4
|
+
tags:
|
|
5
|
+
- LobeChat
|
|
6
|
+
- 数据分析
|
|
7
|
+
- Vercel Analytics
|
|
8
|
+
- 数据统计服务
|
|
9
|
+
- 用户使用情况
|
|
10
|
+
---
|
|
11
|
+
|
|
1
12
|
# 数据分析
|
|
2
13
|
|
|
3
14
|
为更好地帮助分析 LobeChat 的用户使用情况,我们在 LobeChat 中集成了若干免费 / 开源的数据统计服务,用于收集用户的使用情况,你可以按需开启。
|
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: >-
|
|
3
|
+
LobeChat Identity Verification Service - Centralized User Authorization
|
|
4
|
+
Management
|
|
5
|
+
description: >-
|
|
6
|
+
Learn about LobeChat's support for configuring external identity verification
|
|
7
|
+
services for centralized user authorization within enterprises/organizations.
|
|
8
|
+
Explore supported services like Auth0, Microsoft Entra ID, Authentik, Github,
|
|
9
|
+
and ZITADEL.
|
|
10
|
+
tags:
|
|
11
|
+
- Identity Verification Service
|
|
12
|
+
- Centralized User Authorization
|
|
13
|
+
- SSO Providers
|
|
14
|
+
- Auth0
|
|
15
|
+
- Microsoft Entra ID
|
|
16
|
+
- Authentik
|
|
17
|
+
- Github
|
|
18
|
+
- ZITADEL
|
|
19
|
+
---
|
|
20
|
+
|
|
1
21
|
# Identity Verification Service
|
|
2
22
|
|
|
3
23
|
LobeChat supports the configuration of external identity verification services for internal use within enterprises/organizations to centrally manage user authorization.
|
|
@@ -18,13 +38,13 @@ To simultaneously enable multiple identity verification sources, please set the
|
|
|
18
38
|
|
|
19
39
|
The order corresponds to the display order of the SSO providers.
|
|
20
40
|
|
|
21
|
-
| SSO Provider | Value
|
|
22
|
-
| ------------------ |
|
|
23
|
-
| Auth0 | `auth0`
|
|
24
|
-
| Microsoft Entra ID | `azure-ad`
|
|
41
|
+
| SSO Provider | Value |
|
|
42
|
+
| ------------------ | ----------- |
|
|
43
|
+
| Auth0 | `auth0` |
|
|
44
|
+
| Microsoft Entra ID | `azure-ad` |
|
|
25
45
|
| Authentik | `authentik` |
|
|
26
|
-
| Github |
|
|
27
|
-
| ZITADEL | `zitadel`
|
|
46
|
+
| Github | `github` |
|
|
47
|
+
| ZITADEL | `zitadel` |
|
|
28
48
|
|
|
29
49
|
## Other SSO Providers
|
|
30
50
|
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: LobeChat 外部身份验证服务配置指南
|
|
3
|
+
description: >-
|
|
4
|
+
了解如何配置外部身份验证服务以统一管理用户授权。支持的身份验证服务包括 Auth0, Microsoft Entra ID, Authentik,
|
|
5
|
+
Github, 和 ZITADEL。
|
|
6
|
+
tags:
|
|
7
|
+
- 身份验证服务
|
|
8
|
+
- LobeChat
|
|
9
|
+
- SSO
|
|
10
|
+
- Auth0
|
|
11
|
+
- Microsoft Entra ID
|
|
12
|
+
- Authentik
|
|
13
|
+
- Github
|
|
14
|
+
- ZITADEL
|
|
15
|
+
---
|
|
16
|
+
|
|
1
17
|
# 身份验证服务
|
|
2
18
|
|
|
3
19
|
LobeChat 支持配置外部身份验证服务,供企业 / 组织内部使用,统一管理用户授权。
|
|
@@ -18,13 +34,13 @@ LobeChat 支持配置外部身份验证服务,供企业 / 组织内部使用
|
|
|
18
34
|
|
|
19
35
|
顺序为 SSO 提供商的显示顺序。
|
|
20
36
|
|
|
21
|
-
| SSO 提供商
|
|
22
|
-
| ------------------ |
|
|
23
|
-
| Auth0 | `auth0`
|
|
24
|
-
| Microsoft Entra ID | `azure-ad`
|
|
37
|
+
| SSO 提供商 | 值 |
|
|
38
|
+
| ------------------ | ----------- |
|
|
39
|
+
| Auth0 | `auth0` |
|
|
40
|
+
| Microsoft Entra ID | `azure-ad` |
|
|
25
41
|
| Authentik | `authentik` |
|
|
26
|
-
| Github |
|
|
27
|
-
| ZITADEL | `zitadel`
|
|
42
|
+
| Github | `github` |
|
|
43
|
+
| ZITADEL | `zitadel` |
|
|
28
44
|
|
|
29
45
|
## 其他 SSO 提供商
|
|
30
46
|
|