@lobehub/lobehub 2.0.0-next.382 → 2.0.0-next.384
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/.eslintrc.js +1 -0
- package/.i18nrc.js +5 -10
- package/.remarkrc.mdx.js +1 -1
- package/CHANGELOG.md +72 -0
- package/README.md +5 -3
- package/apps/desktop/src/main/controllers/LocalFileCtr.ts +25 -1
- package/apps/desktop/src/main/controllers/UpdaterCtr.ts +1 -1
- package/changelog/v1.json +21 -0
- package/docker-compose/local/.env.example +10 -8
- package/docker-compose/local/.env.zh-CN.example +10 -8
- package/docker-compose/local/bucket.config.json +24 -0
- package/docker-compose/local/docker-compose.yml +56 -37
- package/docker-compose/setup.sh +65 -30
- package/docs/.cdn.cache.json +404 -1
- package/docs/changelog/2023-09-09-plugin-system.mdx +8 -8
- package/docs/changelog/2023-09-09-plugin-system.zh-CN.mdx +6 -6
- package/docs/changelog/2023-11-14-gpt4-vision.mdx +4 -4
- package/docs/changelog/2023-11-14-gpt4-vision.zh-CN.mdx +4 -4
- package/docs/changelog/2023-11-19-tts-stt.mdx +5 -5
- package/docs/changelog/2023-11-19-tts-stt.zh-CN.mdx +5 -5
- package/docs/changelog/2023-12-22-dalle-3.mdx +4 -4
- package/docs/changelog/2023-12-22-dalle-3.zh-CN.mdx +3 -3
- package/docs/changelog/2024-02-08-sso-oauth.mdx +6 -6
- package/docs/changelog/2024-02-08-sso-oauth.zh-CN.mdx +5 -5
- package/docs/changelog/2024-02-14-ollama.mdx +7 -7
- package/docs/changelog/2024-02-14-ollama.zh-CN.mdx +7 -7
- package/docs/changelog/2024-06-19-lobe-chat-v1.mdx +9 -9
- package/docs/changelog/2024-06-19-lobe-chat-v1.zh-CN.mdx +8 -8
- package/docs/changelog/2024-07-19-gpt-4o-mini.mdx +8 -8
- package/docs/changelog/2024-07-19-gpt-4o-mini.zh-CN.mdx +8 -8
- package/docs/changelog/2024-08-02-lobe-chat-database-docker.mdx +7 -7
- package/docs/changelog/2024-08-02-lobe-chat-database-docker.zh-CN.mdx +7 -7
- package/docs/changelog/2024-08-21-file-upload-and-knowledge-base.mdx +5 -5
- package/docs/changelog/2024-08-21-file-upload-and-knowledge-base.zh-CN.mdx +5 -5
- package/docs/changelog/2024-09-13-openai-o1-models.mdx +6 -6
- package/docs/changelog/2024-09-13-openai-o1-models.zh-CN.mdx +7 -7
- package/docs/changelog/2024-09-20-artifacts.mdx +10 -10
- package/docs/changelog/2024-09-20-artifacts.zh-CN.mdx +10 -10
- package/docs/changelog/2024-10-27-pin-assistant.mdx +4 -4
- package/docs/changelog/2024-10-27-pin-assistant.zh-CN.mdx +4 -4
- package/docs/changelog/2024-11-06-share-text-json.mdx +7 -7
- package/docs/changelog/2024-11-06-share-text-json.zh-CN.mdx +4 -4
- package/docs/changelog/2024-11-25-november-providers.mdx +5 -5
- package/docs/changelog/2024-11-25-november-providers.zh-CN.mdx +5 -5
- package/docs/changelog/2024-11-27-forkable-chat.mdx +4 -4
- package/docs/changelog/2024-11-27-forkable-chat.zh-CN.mdx +4 -4
- package/docs/changelog/2025-01-03-user-profile.mdx +5 -5
- package/docs/changelog/2025-01-03-user-profile.zh-CN.mdx +5 -5
- package/docs/changelog/2025-01-22-new-ai-provider.mdx +4 -4
- package/docs/changelog/2025-01-22-new-ai-provider.zh-CN.mdx +4 -4
- package/docs/changelog/2025-02-02-deepseek-r1.mdx +8 -8
- package/docs/changelog/2025-02-02-deepseek-r1.zh-CN.mdx +6 -6
- package/docs/changelog/2025-03-02-new-models.zh-CN.mdx +28 -0
- package/docs/changelog/2025-04-06-exports.zh-CN.mdx +32 -0
- package/docs/changelog/2025-05-08-desktop-app.zh-CN.mdx +35 -0
- package/docs/changelog/2025-06-08-claude-4.zh-CN.mdx +20 -0
- package/docs/changelog/2025-07-08-mcp-market.zh-CN.mdx +28 -0
- package/docs/changelog/2025-08-08-image-generation.zh-CN.mdx +28 -0
- package/docs/changelog/2025-09-08-gemini.zh-CN.mdx +24 -0
- package/docs/changelog/2025-10-08-python.zh-CN.mdx +29 -0
- package/docs/changelog/2025-11-08-comfy-ui.zh-CN.mdx +28 -0
- package/docs/changelog/2025-12-20-mcp.zh-CN.mdx +26 -0
- package/docs/changelog/index.json +60 -0
- package/docs/development/basic/add-new-authentication-providers.mdx +10 -19
- package/docs/development/basic/add-new-authentication-providers.zh-CN.mdx +11 -3
- package/docs/development/basic/add-new-image-model.mdx +7 -0
- package/docs/development/basic/add-new-image-model.zh-CN.mdx +5 -0
- package/docs/development/basic/architecture.mdx +19 -10
- package/docs/development/basic/architecture.zh-CN.mdx +17 -10
- package/docs/development/basic/chat-api.mdx +9 -1
- package/docs/development/basic/chat-api.zh-CN.mdx +7 -1
- package/docs/development/basic/comfyui-development.mdx +3 -3
- package/docs/development/basic/comfyui-development.zh-CN.mdx +4 -4
- package/docs/development/basic/contributing-guidelines.mdx +12 -3
- package/docs/development/basic/contributing-guidelines.zh-CN.mdx +10 -3
- package/docs/development/basic/feature-development-frontend.mdx +15 -6
- package/docs/development/basic/feature-development-frontend.zh-CN.mdx +13 -6
- package/docs/development/basic/feature-development.mdx +16 -9
- package/docs/development/basic/feature-development.zh-CN.mdx +15 -9
- package/docs/development/basic/folder-structure.mdx +10 -1
- package/docs/development/basic/folder-structure.zh-CN.mdx +8 -1
- package/docs/development/basic/resources.mdx +12 -3
- package/docs/development/basic/resources.zh-CN.mdx +10 -3
- package/docs/development/basic/setup-development.mdx +19 -8
- package/docs/development/basic/setup-development.zh-CN.mdx +15 -8
- package/docs/development/basic/test.mdx +12 -3
- package/docs/development/basic/test.zh-CN.mdx +9 -3
- package/docs/development/basic/work-with-server-side-database.mdx +10 -3
- package/docs/development/basic/work-with-server-side-database.zh-CN.mdx +10 -3
- package/docs/development/internationalization/add-new-locale.mdx +13 -6
- package/docs/development/internationalization/add-new-locale.zh-CN.mdx +13 -6
- package/docs/development/internationalization/internationalization-implementation.mdx +16 -7
- package/docs/development/internationalization/internationalization-implementation.zh-CN.mdx +13 -7
- package/docs/development/others/lighthouse.mdx +11 -6
- package/docs/development/others/lighthouse.zh-CN.mdx +12 -6
- package/docs/development/start.mdx +18 -9
- package/docs/development/start.zh-CN.mdx +16 -9
- package/docs/development/state-management/state-management-intro.mdx +17 -9
- package/docs/development/state-management/state-management-intro.zh-CN.mdx +13 -7
- package/docs/development/state-management/state-management-selectors.mdx +12 -3
- package/docs/development/state-management/state-management-selectors.zh-CN.mdx +10 -3
- package/docs/development/tests/integration-testing.mdx +410 -0
- package/docs/development/tests/integration-testing.zh-CN.mdx +8 -2
- package/docs/glossary.md +7 -7
- package/docs/glossary.zh-CN.md +13 -0
- package/docs/self-hosting/advanced/analytics.mdx +4 -4
- package/docs/self-hosting/advanced/analytics.zh-CN.mdx +4 -4
- package/docs/self-hosting/advanced/auth/clerk.mdx +4 -4
- package/docs/self-hosting/advanced/auth/clerk.zh-CN.mdx +4 -4
- package/docs/self-hosting/advanced/auth/next-auth/auth0.mdx +13 -13
- package/docs/self-hosting/advanced/auth/next-auth/auth0.zh-CN.mdx +13 -13
- package/docs/self-hosting/advanced/auth/next-auth/authelia.mdx +10 -10
- package/docs/self-hosting/advanced/auth/next-auth/authelia.zh-CN.mdx +8 -8
- package/docs/self-hosting/advanced/auth/next-auth/authentik.mdx +6 -6
- package/docs/self-hosting/advanced/auth/next-auth/authentik.zh-CN.mdx +6 -6
- package/docs/self-hosting/advanced/auth/next-auth/casdoor.mdx +16 -16
- package/docs/self-hosting/advanced/auth/next-auth/casdoor.zh-CN.mdx +15 -15
- package/docs/self-hosting/advanced/auth/next-auth/cloudflare-zero-trust.mdx +14 -14
- package/docs/self-hosting/advanced/auth/next-auth/cloudflare-zero-trust.zh-CN.mdx +15 -15
- package/docs/self-hosting/advanced/auth/next-auth/github.mdx +14 -14
- package/docs/self-hosting/advanced/auth/next-auth/github.zh-CN.mdx +12 -12
- package/docs/self-hosting/advanced/auth/next-auth/google.mdx +10 -12
- package/docs/self-hosting/advanced/auth/next-auth/google.zh-CN.mdx +77 -0
- package/docs/self-hosting/advanced/auth/next-auth/keycloak.mdx +19 -19
- package/docs/self-hosting/advanced/auth/next-auth/keycloak.zh-CN.mdx +17 -17
- package/docs/self-hosting/advanced/auth/next-auth/logto.mdx +15 -15
- package/docs/self-hosting/advanced/auth/next-auth/logto.zh-CN.mdx +15 -15
- package/docs/self-hosting/advanced/auth/next-auth/microsoft-entra-id.mdx +9 -9
- package/docs/self-hosting/advanced/auth/next-auth/microsoft-entra-id.zh-CN.mdx +8 -8
- package/docs/self-hosting/advanced/auth/next-auth/okta.mdx +8 -8
- package/docs/self-hosting/advanced/auth/next-auth/okta.zh-CN.mdx +6 -6
- package/docs/self-hosting/advanced/auth/next-auth/wechat.mdx +6 -6
- package/docs/self-hosting/advanced/auth/next-auth/wechat.zh-CN.mdx +6 -6
- package/docs/self-hosting/advanced/auth/next-auth/zitadel.mdx +14 -14
- package/docs/self-hosting/advanced/auth/next-auth/zitadel.zh-CN.mdx +15 -15
- package/docs/self-hosting/advanced/auth.mdx +37 -15
- package/docs/self-hosting/advanced/auth.zh-CN.mdx +36 -13
- package/docs/self-hosting/advanced/desktop.mdx +12 -12
- package/docs/self-hosting/advanced/desktop.zh-CN.mdx +12 -12
- package/docs/self-hosting/advanced/feature-flags.mdx +5 -5
- package/docs/self-hosting/advanced/feature-flags.zh-CN.mdx +5 -5
- package/docs/self-hosting/advanced/knowledge-base.mdx +8 -8
- package/docs/self-hosting/advanced/knowledge-base.zh-CN.mdx +7 -7
- package/docs/self-hosting/advanced/model-list.mdx +4 -4
- package/docs/self-hosting/advanced/model-list.zh-CN.mdx +4 -4
- package/docs/self-hosting/advanced/observability/grafana.mdx +7 -7
- package/docs/self-hosting/advanced/observability/grafana.zh-CN.mdx +4 -4
- package/docs/self-hosting/advanced/observability/langfuse.mdx +13 -13
- package/docs/self-hosting/advanced/observability/langfuse.zh-CN.mdx +13 -13
- package/docs/self-hosting/advanced/online-search.mdx +6 -6
- package/docs/self-hosting/advanced/online-search.zh-CN.mdx +6 -6
- package/docs/self-hosting/advanced/s3/cloudflare-r2.mdx +13 -13
- package/docs/self-hosting/advanced/s3/cloudflare-r2.zh-CN.mdx +13 -13
- package/docs/self-hosting/advanced/s3/rustfs.mdx +142 -0
- package/docs/self-hosting/advanced/s3/rustfs.zh-CN.mdx +143 -0
- package/docs/self-hosting/advanced/s3/tencent-cloud.mdx +4 -4
- package/docs/self-hosting/advanced/s3/tencent-cloud.zh-CN.mdx +4 -4
- package/docs/self-hosting/advanced/s3.mdx +4 -4
- package/docs/self-hosting/advanced/s3.zh-CN.mdx +1 -1
- package/docs/self-hosting/advanced/settings-url-share.mdx +4 -4
- package/docs/self-hosting/advanced/settings-url-share.zh-CN.mdx +5 -5
- package/docs/self-hosting/advanced/upstream-sync.mdx +11 -11
- package/docs/self-hosting/advanced/upstream-sync.zh-CN.mdx +11 -11
- package/docs/self-hosting/environment-variables/analytics.mdx +5 -5
- package/docs/self-hosting/environment-variables/analytics.zh-CN.mdx +3 -3
- package/docs/self-hosting/environment-variables/auth.mdx +3 -3
- package/docs/self-hosting/environment-variables/auth.zh-CN.mdx +4 -4
- package/docs/self-hosting/environment-variables/basic.mdx +15 -15
- package/docs/self-hosting/environment-variables/basic.zh-CN.mdx +14 -14
- package/docs/self-hosting/environment-variables/model-provider.mdx +2 -2
- package/docs/self-hosting/environment-variables/model-provider.zh-CN.mdx +4 -4
- package/docs/self-hosting/environment-variables/s3.mdx +2 -2
- package/docs/self-hosting/environment-variables/s3.zh-CN.mdx +2 -2
- package/docs/self-hosting/environment-variables.mdx +7 -7
- package/docs/self-hosting/environment-variables.zh-CN.mdx +4 -4
- package/docs/self-hosting/examples/azure-openai.mdx +5 -4
- package/docs/self-hosting/examples/azure-openai.zh-CN.mdx +4 -3
- package/docs/self-hosting/examples/ollama.mdx +10 -10
- package/docs/self-hosting/examples/ollama.zh-CN.mdx +9 -9
- package/docs/self-hosting/faq/no-v1-suffix.mdx +2 -4
- package/docs/self-hosting/faq/no-v1-suffix.zh-CN.mdx +2 -2
- package/docs/self-hosting/faq/proxy-with-unable-to-verify-leaf-signature.mdx +2 -2
- package/docs/self-hosting/faq/proxy-with-unable-to-verify-leaf-signature.zh-CN.mdx +2 -2
- package/docs/self-hosting/platform/alibaba-cloud.mdx +8 -7
- package/docs/self-hosting/platform/alibaba-cloud.zh-CN.mdx +5 -5
- package/docs/self-hosting/platform/btpanel.mdx +12 -12
- package/docs/self-hosting/platform/btpanel.zh-CN.mdx +11 -11
- package/docs/self-hosting/platform/docker-compose.mdx +4 -4
- package/docs/self-hosting/platform/docker-compose.zh-CN.mdx +4 -4
- package/docs/self-hosting/platform/docker.mdx +6 -6
- package/docs/self-hosting/platform/docker.zh-CN.mdx +8 -8
- package/docs/self-hosting/platform/netlify.mdx +27 -26
- package/docs/self-hosting/platform/netlify.zh-CN.mdx +24 -23
- package/docs/self-hosting/platform/railway.mdx +7 -7
- package/docs/self-hosting/platform/railway.zh-CN.mdx +6 -4
- package/docs/self-hosting/platform/repocloud.mdx +7 -7
- package/docs/self-hosting/platform/repocloud.zh-CN.mdx +4 -4
- package/docs/self-hosting/platform/sealos.mdx +6 -6
- package/docs/self-hosting/platform/sealos.zh-CN.mdx +5 -4
- package/docs/self-hosting/platform/tencentcloud-lighthouse.mdx +9 -7
- package/docs/self-hosting/platform/tencentcloud-lighthouse.zh-CN.mdx +5 -5
- package/docs/self-hosting/platform/vercel.mdx +7 -6
- package/docs/self-hosting/platform/vercel.zh-CN.mdx +6 -5
- package/docs/self-hosting/platform/zeabur.mdx +9 -9
- package/docs/self-hosting/platform/zeabur.zh-CN.mdx +9 -8
- package/docs/self-hosting/server-database/docker-compose.mdx +37 -37
- package/docs/self-hosting/server-database/docker-compose.zh-CN.mdx +37 -37
- package/docs/self-hosting/server-database/docker.mdx +17 -12
- package/docs/self-hosting/server-database/docker.zh-CN.mdx +18 -12
- package/docs/self-hosting/server-database/dokploy.mdx +24 -24
- package/docs/self-hosting/server-database/dokploy.zh-CN.mdx +20 -20
- package/docs/self-hosting/server-database/netlify.mdx +4 -4
- package/docs/self-hosting/server-database/netlify.zh-CN.mdx +4 -4
- package/docs/self-hosting/server-database/railway.mdx +4 -4
- package/docs/self-hosting/server-database/railway.zh-CN.mdx +4 -4
- package/docs/self-hosting/server-database/repocloud.mdx +5 -5
- package/docs/self-hosting/server-database/repocloud.zh-CN.mdx +5 -5
- package/docs/self-hosting/server-database/sealos.mdx +5 -5
- package/docs/self-hosting/server-database/sealos.zh-CN.mdx +5 -5
- package/docs/self-hosting/server-database/vercel.mdx +76 -27
- package/docs/self-hosting/server-database/vercel.zh-CN.mdx +73 -26
- package/docs/self-hosting/server-database/zeabur.mdx +14 -14
- package/docs/self-hosting/server-database/zeabur.zh-CN.mdx +14 -14
- package/docs/self-hosting/server-database.mdx +30 -12
- package/docs/self-hosting/server-database.zh-CN.mdx +26 -9
- package/docs/self-hosting/start.mdx +6 -6
- package/docs/self-hosting/start.zh-CN.mdx +5 -5
- package/docs/usage/agent/agent-team.mdx +66 -0
- package/docs/usage/agent/agent-team.zh-CN.mdx +64 -0
- package/docs/usage/agent/gtd.mdx +35 -0
- package/docs/usage/agent/gtd.zh-CN.mdx +33 -0
- package/docs/usage/agent/notebook.mdx +65 -0
- package/docs/usage/agent/notebook.zh-CN.mdx +56 -0
- package/docs/usage/agent/sandbox.mdx +79 -0
- package/docs/usage/agent/sandbox.zh-CN.mdx +73 -0
- package/docs/usage/agent/scheduled-task.mdx +27 -0
- package/docs/usage/agent/scheduled-task.zh-CN.mdx +25 -0
- package/docs/usage/agent/share.mdx +92 -0
- package/docs/usage/agent/share.zh-CN.mdx +60 -0
- package/docs/usage/agent/topic.mdx +59 -0
- package/docs/usage/agent/topic.zh-CN.mdx +57 -0
- package/docs/usage/agent/translate.mdx +32 -0
- package/docs/usage/agent/translate.zh-CN.mdx +29 -0
- package/docs/usage/agent/tts-stt.mdx +38 -0
- package/docs/usage/agent/tts-stt.zh-CN.mdx +36 -0
- package/docs/usage/community/agent-market.mdx +44 -0
- package/docs/usage/community/agent-market.zh-CN.mdx +41 -0
- package/docs/usage/community/become-a-creator.mdx +27 -0
- package/docs/usage/community/become-a-creator.zh-CN.mdx +25 -0
- package/docs/usage/community/custom-plugin.mdx +37 -0
- package/docs/usage/community/custom-plugin.zh-CN.mdx +35 -0
- package/docs/usage/community/mcp-market.mdx +32 -0
- package/docs/usage/community/mcp-market.zh-CN.mdx +30 -0
- package/docs/usage/community/publish-agent.mdx +30 -0
- package/docs/usage/community/publish-agent.zh-CN.mdx +27 -0
- package/docs/usage/community/pulgin-development.mdx +281 -0
- package/docs/usage/{plugins/development.zh-CN.mdx → community/pulgin-development.zh-CN.mdx} +24 -23
- package/docs/usage/getting-started/agent.mdx +105 -0
- package/docs/usage/getting-started/agent.zh-CN.mdx +103 -0
- package/docs/usage/getting-started/get-lobehub.mdx +41 -0
- package/docs/usage/getting-started/get-lobehub.zh-CN.mdx +39 -0
- package/docs/usage/getting-started/image-generation.mdx +54 -0
- package/docs/usage/getting-started/image-generation.zh-CN.mdx +52 -0
- package/docs/usage/getting-started/lobe-ai.mdx +34 -0
- package/docs/usage/getting-started/lobe-ai.zh-CN.mdx +32 -0
- package/docs/usage/getting-started/memory.mdx +72 -0
- package/docs/usage/getting-started/memory.zh-CN.mdx +68 -0
- package/docs/usage/getting-started/page.mdx +62 -0
- package/docs/usage/getting-started/page.zh-CN.mdx +60 -0
- package/docs/usage/getting-started/resource.mdx +67 -0
- package/docs/usage/getting-started/resource.zh-CN.mdx +65 -0
- package/docs/usage/help.mdx +38 -0
- package/docs/usage/help.zh-CN.mdx +36 -0
- package/docs/usage/migrate-from-local-database.mdx +118 -0
- package/docs/usage/migrate-from-local-database.zh-CN.mdx +115 -0
- package/docs/usage/providers/ai21.mdx +21 -22
- package/docs/usage/providers/ai21.zh-CN.mdx +12 -12
- package/docs/usage/providers/ai302.mdx +23 -21
- package/docs/usage/providers/ai302.zh-CN.mdx +8 -8
- package/docs/usage/providers/ai360.mdx +23 -22
- package/docs/usage/providers/ai360.zh-CN.mdx +12 -12
- package/docs/usage/providers/aihubmix.mdx +98 -0
- package/docs/usage/providers/aihubmix.zh-CN.mdx +5 -5
- package/docs/usage/providers/anthropic.mdx +25 -28
- package/docs/usage/providers/anthropic.zh-CN.mdx +13 -13
- package/docs/usage/providers/azure.mdx +25 -30
- package/docs/usage/providers/azure.zh-CN.mdx +14 -14
- package/docs/usage/providers/azureai.mdx +32 -32
- package/docs/usage/providers/azureai.zh-CN.mdx +15 -15
- package/docs/usage/providers/baichuan.mdx +21 -21
- package/docs/usage/providers/baichuan.zh-CN.mdx +12 -12
- package/docs/usage/providers/bedrock.mdx +41 -41
- package/docs/usage/providers/bedrock.zh-CN.mdx +19 -19
- package/docs/usage/providers/bfl.mdx +22 -23
- package/docs/usage/providers/bfl.zh-CN.mdx +8 -10
- package/docs/usage/providers/cloudflare.mdx +27 -27
- package/docs/usage/providers/cloudflare.zh-CN.mdx +13 -13
- package/docs/usage/providers/comfyui.mdx +90 -650
- package/docs/usage/providers/comfyui.zh-CN.mdx +20 -20
- package/docs/usage/providers/deepseek.mdx +28 -30
- package/docs/usage/providers/deepseek.zh-CN.mdx +14 -14
- package/docs/usage/providers/fal.mdx +23 -24
- package/docs/usage/providers/fal.zh-CN.mdx +8 -10
- package/docs/usage/providers/fireworksai.mdx +21 -23
- package/docs/usage/providers/fireworksai.zh-CN.mdx +13 -13
- package/docs/usage/providers/giteeai.mdx +24 -26
- package/docs/usage/providers/giteeai.zh-CN.mdx +13 -13
- package/docs/usage/providers/github.mdx +30 -28
- package/docs/usage/providers/github.zh-CN.mdx +14 -14
- package/docs/usage/providers/google.mdx +25 -26
- package/docs/usage/providers/google.zh-CN.mdx +13 -13
- package/docs/usage/providers/groq.mdx +20 -25
- package/docs/usage/providers/groq.zh-CN.mdx +12 -12
- package/docs/usage/providers/hunyuan.mdx +22 -23
- package/docs/usage/providers/hunyuan.zh-CN.mdx +13 -13
- package/docs/usage/providers/infiniai.mdx +21 -14
- package/docs/usage/providers/infiniai.zh-CN.mdx +7 -7
- package/docs/usage/providers/internlm.mdx +23 -25
- package/docs/usage/providers/internlm.zh-CN.mdx +12 -12
- package/docs/usage/providers/jina.mdx +25 -24
- package/docs/usage/providers/jina.zh-CN.mdx +12 -12
- package/docs/usage/providers/lmstudio.mdx +41 -39
- package/docs/usage/providers/lmstudio.zh-CN.mdx +16 -16
- package/docs/usage/providers/minimax.mdx +28 -29
- package/docs/usage/providers/minimax.zh-CN.mdx +15 -15
- package/docs/usage/providers/mistral.mdx +21 -24
- package/docs/usage/providers/mistral.zh-CN.mdx +11 -11
- package/docs/usage/providers/modelscope.mdx +53 -33
- package/docs/usage/providers/modelscope.zh-CN.mdx +4 -4
- package/docs/usage/providers/moonshot.mdx +19 -22
- package/docs/usage/providers/moonshot.zh-CN.mdx +11 -11
- package/docs/usage/providers/novita.mdx +25 -24
- package/docs/usage/providers/novita.zh-CN.mdx +13 -13
- package/docs/usage/providers/nvidia.mdx +26 -25
- package/docs/usage/providers/nvidia.zh-CN.mdx +13 -13
- package/docs/usage/providers/ollama/gemma.mdx +20 -21
- package/docs/usage/providers/ollama/gemma.zh-CN.mdx +11 -11
- package/docs/usage/providers/ollama/qwen.mdx +22 -24
- package/docs/usage/providers/ollama/qwen.zh-CN.mdx +11 -11
- package/docs/usage/providers/ollama.mdx +56 -56
- package/docs/usage/providers/ollama.zh-CN.mdx +22 -22
- package/docs/usage/providers/openai.mdx +25 -27
- package/docs/usage/providers/openai.zh-CN.mdx +10 -10
- package/docs/usage/providers/openrouter.mdx +33 -36
- package/docs/usage/providers/openrouter.zh-CN.mdx +15 -15
- package/docs/usage/providers/perplexity.mdx +18 -19
- package/docs/usage/providers/perplexity.zh-CN.mdx +11 -11
- package/docs/usage/providers/ppio.mdx +25 -26
- package/docs/usage/providers/ppio.zh-CN.mdx +15 -15
- package/docs/usage/providers/qiniu.mdx +29 -30
- package/docs/usage/providers/qiniu.zh-CN.mdx +8 -8
- package/docs/usage/providers/qwen.mdx +29 -30
- package/docs/usage/providers/qwen.zh-CN.mdx +14 -14
- package/docs/usage/providers/sambanova.mdx +23 -22
- package/docs/usage/providers/sambanova.zh-CN.mdx +12 -12
- package/docs/usage/providers/sensenova.mdx +27 -29
- package/docs/usage/providers/sensenova.zh-CN.mdx +13 -13
- package/docs/usage/providers/siliconcloud.mdx +21 -22
- package/docs/usage/providers/siliconcloud.zh-CN.mdx +12 -12
- package/docs/usage/providers/spark.mdx +25 -25
- package/docs/usage/providers/spark.zh-CN.mdx +13 -13
- package/docs/usage/providers/stepfun.mdx +21 -22
- package/docs/usage/providers/stepfun.zh-CN.mdx +11 -11
- package/docs/usage/providers/taichu.mdx +21 -21
- package/docs/usage/providers/taichu.zh-CN.mdx +12 -12
- package/docs/usage/providers/tencentcloud.mdx +26 -24
- package/docs/usage/providers/tencentcloud.zh-CN.mdx +12 -12
- package/docs/usage/providers/togetherai.mdx +23 -23
- package/docs/usage/providers/togetherai.zh-CN.mdx +13 -13
- package/docs/usage/providers/upstage.mdx +23 -22
- package/docs/usage/providers/upstage.zh-CN.mdx +12 -12
- package/docs/usage/providers/vercel-ai-gateway.mdx +27 -29
- package/docs/usage/providers/vercel-ai-gateway.zh-CN.mdx +8 -9
- package/docs/usage/providers/vertexai.mdx +31 -29
- package/docs/usage/providers/vertexai.zh-CN.mdx +14 -14
- package/docs/usage/providers/vllm.mdx +31 -32
- package/docs/usage/providers/vllm.zh-CN.mdx +11 -11
- package/docs/usage/providers/volcengine.mdx +23 -22
- package/docs/usage/providers/volcengine.zh-CN.mdx +12 -12
- package/docs/usage/providers/wenxin.mdx +29 -30
- package/docs/usage/providers/wenxin.zh-CN.mdx +14 -14
- package/docs/usage/providers/xai.mdx +23 -25
- package/docs/usage/providers/xai.zh-CN.mdx +12 -12
- package/docs/usage/providers/zeroone.mdx +31 -29
- package/docs/usage/providers/zeroone.zh-CN.mdx +14 -16
- package/docs/usage/providers/zhipu.mdx +20 -21
- package/docs/usage/providers/zhipu.zh-CN.mdx +11 -11
- package/docs/usage/providers.mdx +14 -12
- package/docs/usage/providers.zh-CN.mdx +7 -7
- package/docs/usage/start.mdx +22 -51
- package/docs/usage/start.zh-CN.mdx +16 -44
- package/docs/usage/user-interface/appearance.mdx +53 -0
- package/docs/usage/user-interface/appearance.zh-CN.mdx +49 -0
- package/docs/usage/user-interface/command-menu.mdx +56 -0
- package/docs/usage/user-interface/command-menu.zh-CN.mdx +47 -0
- package/docs/usage/user-interface/shortcuts.mdx +53 -0
- package/docs/usage/user-interface/shortcuts.zh-CN.mdx +50 -0
- package/docs/usage/user-interface/stats.mdx +53 -0
- package/docs/usage/user-interface/stats.zh-CN.mdx +51 -0
- package/docs/usage/workspace/manage-quota.mdx +30 -0
- package/docs/usage/workspace/manage-quota.zh-CN.mdx +30 -0
- package/docs/usage/workspace/manage-team.mdx +31 -0
- package/docs/usage/workspace/manage-team.zh-CN.mdx +30 -0
- package/docs/wiki/HOME.zh-CN.md +11 -0
- package/locales/ar/discover.json +2 -0
- package/locales/ar/file.json +3 -0
- package/locales/ar/models.json +43 -0
- package/locales/bg-BG/discover.json +2 -0
- package/locales/bg-BG/file.json +3 -0
- package/locales/bg-BG/models.json +2 -0
- package/locales/de-DE/discover.json +2 -0
- package/locales/de-DE/file.json +3 -0
- package/locales/de-DE/models.json +29 -0
- package/locales/en-US/common.json +1 -0
- package/locales/en-US/discover.json +2 -0
- package/locales/en-US/file.json +3 -0
- package/locales/es-ES/discover.json +2 -0
- package/locales/es-ES/file.json +3 -0
- package/locales/es-ES/models.json +9 -0
- package/locales/fa-IR/discover.json +2 -0
- package/locales/fa-IR/file.json +3 -0
- package/locales/fa-IR/models.json +55 -0
- package/locales/fr-FR/discover.json +2 -0
- package/locales/fr-FR/file.json +3 -0
- package/locales/fr-FR/models.json +34 -0
- package/locales/it-IT/discover.json +2 -0
- package/locales/it-IT/file.json +3 -0
- package/locales/it-IT/models.json +46 -0
- package/locales/ja-JP/discover.json +2 -0
- package/locales/ja-JP/file.json +3 -0
- package/locales/ja-JP/models.json +36 -0
- package/locales/ko-KR/discover.json +2 -0
- package/locales/ko-KR/file.json +3 -0
- package/locales/ko-KR/models.json +46 -0
- package/locales/nl-NL/discover.json +2 -0
- package/locales/nl-NL/file.json +3 -0
- package/locales/nl-NL/models.json +48 -0
- package/locales/pl-PL/discover.json +2 -0
- package/locales/pl-PL/file.json +3 -0
- package/locales/pl-PL/models.json +29 -0
- package/locales/pt-BR/discover.json +2 -0
- package/locales/pt-BR/file.json +3 -0
- package/locales/pt-BR/models.json +38 -0
- package/locales/ru-RU/discover.json +2 -0
- package/locales/ru-RU/file.json +3 -0
- package/locales/ru-RU/models.json +33 -0
- package/locales/tr-TR/discover.json +2 -0
- package/locales/tr-TR/file.json +3 -0
- package/locales/tr-TR/models.json +52 -0
- package/locales/vi-VN/discover.json +2 -0
- package/locales/vi-VN/file.json +3 -0
- package/locales/vi-VN/models.json +9 -0
- package/locales/zh-CN/common.json +1 -0
- package/locales/zh-CN/discover.json +2 -0
- package/locales/zh-CN/file.json +3 -0
- package/locales/zh-CN/models.json +100 -0
- package/locales/zh-TW/discover.json +2 -0
- package/locales/zh-TW/file.json +3 -0
- package/locales/zh-TW/models.json +45 -0
- package/package.json +5 -3
- package/packages/builtin-tool-group-agent-builder/src/ExecutionRuntime/index.ts +11 -0
- package/packages/builtin-tool-group-agent-builder/src/systemRole.ts +37 -7
- package/packages/electron-client-ipc/src/types/localSystem.ts +27 -0
- package/packages/model-runtime/src/core/contextBuilders/google.test.ts +73 -0
- package/packages/model-runtime/src/core/contextBuilders/google.ts +10 -0
- package/packages/observability-otel/src/api.ts +2 -2
- package/packages/types/src/discover/assistants.ts +2 -0
- package/packages/types/src/discover/groupAgents.ts +8 -0
- package/scripts/cdnWorkflow/index.ts +2 -0
- package/scripts/docsWorkflow/autoCDN.ts +172 -0
- package/scripts/docsWorkflow/optimized.ts +21 -0
- package/scripts/docsWorkflow/utils.ts +87 -0
- package/src/app/(backend)/middleware/auth/index.ts +27 -1
- package/src/app/[variants]/(main)/community/(detail)/agent/features/AgentForkTag.tsx +59 -0
- package/src/app/[variants]/(main)/community/(detail)/agent/features/Header.tsx +9 -36
- package/src/app/[variants]/(main)/community/(detail)/group_agent/features/GroupAgentForkTag.tsx +57 -0
- package/src/app/[variants]/(main)/community/(detail)/group_agent/features/Header.tsx +18 -2
- package/src/app/[variants]/(main)/community/(detail)/user/features/UserAgentCard.tsx +11 -3
- package/src/app/[variants]/(main)/community/(detail)/user/features/UserGroupCard.tsx +11 -3
- package/src/app/[variants]/(main)/group/profile/features/GroupProfile/index.tsx +15 -1
- package/src/app/[variants]/(main)/group/profile/features/MemberProfile/index.tsx +15 -1
- package/src/app/[variants]/(main)/memory/features/MemoryAnalysis/AnalysisTrigger.tsx +2 -2
- package/src/app/[variants]/(main)/settings/about/features/Version.tsx +10 -2
- package/src/features/EditorCanvas/EditorDataMode.tsx +16 -10
- package/src/features/PageEditor/Header/index.tsx +1 -0
- package/src/features/PageEditor/Header/useMenu.tsx +22 -11
- package/src/instrumentation.ts +9 -2
- package/src/layout/GlobalProvider/index.tsx +2 -1
- package/src/libs/observability/traceparent.test.ts +69 -0
- package/src/libs/observability/traceparent.ts +110 -0
- package/src/libs/trpc/lambda/context.test.ts +13 -0
- package/src/libs/trpc/lambda/context.ts +15 -6
- package/src/libs/trpc/middleware/openTelemetry.test.ts +93 -0
- package/src/libs/trpc/middleware/openTelemetry.ts +18 -7
- package/src/locales/default/common.ts +1 -0
- package/src/locales/default/discover.ts +3 -0
- package/src/locales/default/file.ts +3 -0
- package/src/server/services/discover/index.ts +7 -0
- package/src/services/electron/desktopExportService.tsx +61 -0
- package/src/services/electron/localFileService.ts +7 -0
- package/src/store/agent/selectors/agentByIdSelectors.ts +7 -0
- package/src/store/groupProfile/action.ts +15 -0
- package/src/store/groupProfile/initialState.ts +9 -0
- package/src/store/tool/slices/mcpStore/action.ts +8 -7
- package/docs/usage/agents/agent-organization.mdx +0 -53
- package/docs/usage/agents/agent-organization.zh-CN.mdx +0 -51
- package/docs/usage/agents/concepts.mdx +0 -40
- package/docs/usage/agents/concepts.zh-CN.mdx +0 -38
- package/docs/usage/agents/custom-agent.mdx +0 -57
- package/docs/usage/agents/custom-agent.zh-CN.mdx +0 -53
- package/docs/usage/agents/model.mdx +0 -95
- package/docs/usage/agents/model.zh-CN.mdx +0 -88
- package/docs/usage/agents/prompt.mdx +0 -108
- package/docs/usage/agents/prompt.zh-CN.mdx +0 -105
- package/docs/usage/agents/topics.mdx +0 -26
- package/docs/usage/agents/topics.zh-CN.mdx +0 -25
- package/docs/usage/features/agent-market.mdx +0 -32
- package/docs/usage/features/agent-market.zh-CN.mdx +0 -31
- package/docs/usage/features/agent-team.mdx +0 -52
- package/docs/usage/features/agent-team.zh-CN.mdx +0 -52
- package/docs/usage/features/artifacts.mdx +0 -23
- package/docs/usage/features/artifacts.zh-CN.mdx +0 -22
- package/docs/usage/features/auth.mdx +0 -76
- package/docs/usage/features/auth.zh-CN.mdx +0 -74
- package/docs/usage/features/branching-conversations.mdx +0 -21
- package/docs/usage/features/branching-conversations.zh-CN.mdx +0 -21
- package/docs/usage/features/cot.mdx +0 -18
- package/docs/usage/features/cot.zh-CN.mdx +0 -18
- package/docs/usage/features/database.mdx +0 -56
- package/docs/usage/features/database.zh-CN.mdx +0 -50
- package/docs/usage/features/desktop.mdx +0 -53
- package/docs/usage/features/desktop.zh-CN.mdx +0 -49
- package/docs/usage/features/knowledge-base.mdx +0 -25
- package/docs/usage/features/knowledge-base.zh-CN.mdx +0 -22
- package/docs/usage/features/local-llm.mdx +0 -51
- package/docs/usage/features/local-llm.zh-CN.mdx +0 -44
- package/docs/usage/features/mcp-market.mdx +0 -26
- package/docs/usage/features/mcp-market.zh-CN.mdx +0 -22
- package/docs/usage/features/mcp.mdx +0 -58
- package/docs/usage/features/mcp.zh-CN.mdx +0 -54
- package/docs/usage/features/mobile.mdx +0 -20
- package/docs/usage/features/mobile.zh-CN.mdx +0 -19
- package/docs/usage/features/more.mdx +0 -32
- package/docs/usage/features/more.zh-CN.mdx +0 -28
- package/docs/usage/features/multi-ai-providers.mdx +0 -57
- package/docs/usage/features/multi-ai-providers.zh-CN.mdx +0 -58
- package/docs/usage/features/plugin-system.mdx +0 -80
- package/docs/usage/features/plugin-system.zh-CN.mdx +0 -70
- package/docs/usage/features/pwa.mdx +0 -60
- package/docs/usage/features/pwa.zh-CN.mdx +0 -61
- package/docs/usage/features/search.mdx +0 -56
- package/docs/usage/features/search.zh-CN.mdx +0 -52
- package/docs/usage/features/text-to-image.mdx +0 -18
- package/docs/usage/features/text-to-image.zh-CN.mdx +0 -19
- package/docs/usage/features/theme.mdx +0 -28
- package/docs/usage/features/theme.zh-CN.mdx +0 -25
- package/docs/usage/features/tts.mdx +0 -40
- package/docs/usage/features/tts.zh-CN.mdx +0 -35
- package/docs/usage/features/vision.mdx +0 -20
- package/docs/usage/features/vision.zh-CN.mdx +0 -18
- package/docs/usage/foundation/basic.mdx +0 -43
- package/docs/usage/foundation/basic.zh-CN.mdx +0 -46
- package/docs/usage/foundation/share.mdx +0 -35
- package/docs/usage/foundation/share.zh-CN.mdx +0 -33
- package/docs/usage/foundation/text2image.mdx +0 -39
- package/docs/usage/foundation/text2image.zh-CN.mdx +0 -35
- package/docs/usage/foundation/translate.mdx +0 -30
- package/docs/usage/foundation/translate.zh-CN.mdx +0 -29
- package/docs/usage/foundation/tts-stt.mdx +0 -38
- package/docs/usage/foundation/tts-stt.zh-CN.mdx +0 -36
- package/docs/usage/foundation/vision.mdx +0 -36
- package/docs/usage/foundation/vision.zh-CN.mdx +0 -33
- package/docs/usage/plugins/basic-usage.mdx +0 -45
- package/docs/usage/plugins/basic-usage.zh-CN.mdx +0 -44
- package/docs/usage/plugins/custom-plugin.mdx +0 -37
- package/docs/usage/plugins/custom-plugin.zh-CN.mdx +0 -35
- package/docs/usage/plugins/development.mdx +0 -279
- package/docs/usage/plugins/store.mdx +0 -22
- package/docs/usage/plugins/store.zh-CN.mdx +0 -19
- package/docs/usage/tools-calling/anthropic.mdx +0 -152
- package/docs/usage/tools-calling/anthropic.zh-CN.mdx +0 -152
- package/docs/usage/tools-calling/google.mdx +0 -109
- package/docs/usage/tools-calling/google.zh-CN.mdx +0 -109
- package/docs/usage/tools-calling/groq.mdx +0 -10
- package/docs/usage/tools-calling/groq.zh-CN.mdx +0 -163
- package/docs/usage/tools-calling/moonshot.mdx +0 -10
- package/docs/usage/tools-calling/moonshot.zh-CN.mdx +0 -24
- package/docs/usage/tools-calling/openai.mdx +0 -114
- package/docs/usage/tools-calling/openai.zh-CN.mdx +0 -114
- package/docs/usage/tools-calling.mdx +0 -12
- package/docs/usage/tools-calling.zh-CN.mdx +0 -248
|
@@ -1,50 +1,49 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: Using Google Gemma Model in
|
|
2
|
+
title: Using the Google Gemma Model in LobeHub
|
|
3
3
|
description: >-
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
Easily perform natural language processing tasks with the Google Gemma model
|
|
5
|
+
through LobeHub's integration with Ollama. Install Ollama, pull the Gemma
|
|
6
|
+
model, select it from the model panel, and start chatting.
|
|
6
7
|
tags:
|
|
7
8
|
- Google Gemma
|
|
8
|
-
-
|
|
9
|
+
- LobeHub
|
|
9
10
|
- Ollama
|
|
10
11
|
- Natural Language Processing
|
|
11
|
-
-
|
|
12
|
+
- Model Selection
|
|
12
13
|
---
|
|
13
14
|
|
|
14
|
-
# Using Google Gemma Model
|
|
15
|
+
# Using the Google Gemma Model
|
|
15
16
|
|
|
16
|
-
<Image alt={'Using Gemma in
|
|
17
|
+
<Image alt={'Using Gemma in LobeHub'} cover rounded src={'/blog/assets17870709/65d2dd2a-fdcf-4f3f-a6af-4ed5164a510d.webp'} />
|
|
17
18
|
|
|
18
|
-
[Gemma](https://blog.google/technology/developers/gemma-open-models/) is an open-source large language model (LLM)
|
|
19
|
+
[Gemma](https://blog.google/technology/developers/gemma-open-models/) is an open-source large language model (LLM) developed by Google. It is designed to be a general-purpose and flexible model for a wide range of natural language processing (NLP) tasks. Now, thanks to LobeHub’s integration with [Ollama](https://ollama.com/), you can easily use Google Gemma directly within LobeHub.
|
|
19
20
|
|
|
20
|
-
This
|
|
21
|
+
This guide will walk you through how to use the Google Gemma model in LobeHub:
|
|
21
22
|
|
|
22
23
|
<Steps>
|
|
23
|
-
### Install Ollama
|
|
24
|
+
### Install Ollama Locally
|
|
24
25
|
|
|
25
|
-
First, you need to install Ollama. For
|
|
26
|
+
First, you’ll need to install Ollama. For installation instructions, refer to the [Ollama usage guide](/en/docs/usage/providers/ollama).
|
|
26
27
|
|
|
27
|
-
### Pull Google Gemma
|
|
28
|
+
### Pull the Google Gemma Model Using Ollama
|
|
28
29
|
|
|
29
|
-
|
|
30
|
+
Once Ollama is installed, you can pull the Google Gemma model locally. For example, to pull the 7b model, run the following command:
|
|
30
31
|
|
|
31
32
|
```bash
|
|
32
33
|
ollama pull gemma
|
|
33
34
|
```
|
|
34
35
|
|
|
35
|
-
<Image alt={'Pulling Gemma model using Ollama'} height={473} inStep src={'
|
|
36
|
+
<Image alt={'Pulling the Gemma model using Ollama'} height={473} inStep src={'/blog/assets28616219/7049a811-a08b-45d3-8491-970f579c2ebd.webp'} width={791} />
|
|
36
37
|
|
|
37
|
-
### Select Gemma
|
|
38
|
+
### Select the Gemma Model
|
|
38
39
|
|
|
39
|
-
In the
|
|
40
|
+
In the chat interface, open the model selection panel and choose the Gemma model.
|
|
40
41
|
|
|
41
|
-
<Image alt={'Selecting Gemma model in the model
|
|
42
|
+
<Image alt={'Selecting the Gemma model in the model panel'} height={629} inStep src={'/blog/assets28616219/69414c79-642e-4323-9641-bfa43a74fcc8.webp'} width={791} />
|
|
42
43
|
|
|
43
44
|
<Callout type={'info'}>
|
|
44
|
-
If you
|
|
45
|
-
with Ollama](/docs/self-hosting/examples/ollama) to learn how to enable the Ollama provider in
|
|
46
|
-
LobeChat.
|
|
45
|
+
If you don’t see the Ollama provider in the model selection panel, refer to the [Ollama Integration Guide](/en/docs/self-hosting/examples/ollama) to learn how to enable the Ollama provider in LobeHub.
|
|
47
46
|
</Callout>
|
|
48
47
|
</Steps>
|
|
49
48
|
|
|
50
|
-
|
|
49
|
+
You’re all set! You can now start chatting with the local Gemma model directly in LobeHub.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: 在
|
|
2
|
+
title: 在 LobeHub 中使用 Google Gemma 模型
|
|
3
3
|
description: >-
|
|
4
|
-
通过
|
|
5
|
-
|
|
4
|
+
通过 LobeHub 与 Ollama 的集成,轻松使用 Google Gemma 模型进行自然语言处理任务。安装 Ollama,拉取 Gemma
|
|
5
|
+
模型,选择模型面板中的 Gemma 模型,开始对话。
|
|
6
6
|
tags:
|
|
7
7
|
- Google Gemma
|
|
8
|
-
-
|
|
8
|
+
- LobeHub
|
|
9
9
|
- Ollama
|
|
10
10
|
- 自然语言处理
|
|
11
11
|
- 模型选择
|
|
@@ -13,11 +13,11 @@ tags:
|
|
|
13
13
|
|
|
14
14
|
# 使用 Google Gemma 模型
|
|
15
15
|
|
|
16
|
-
<Image alt={'在
|
|
16
|
+
<Image alt={'在 LobeHub 中使用 Gemma'} cover rounded src={'/blog/assets17870709/65d2dd2a-fdcf-4f3f-a6af-4ed5164a510d.webp'} />
|
|
17
17
|
|
|
18
|
-
[Gemma](https://blog.google/technology/developers/gemma-open-models/) 是 Google 开源的一款大语言模型(LLM),旨在提供一个更加通用、灵活的模型用于各种自然语言处理任务。现在,通过
|
|
18
|
+
[Gemma](https://blog.google/technology/developers/gemma-open-models/) 是 Google 开源的一款大语言模型(LLM),旨在提供一个更加通用、灵活的模型用于各种自然语言处理任务。现在,通过 LobeHub 与 [Ollama](https://ollama.com/) 的集成,你可以轻松地在 LobeHub 中使用 Google Gemma。
|
|
19
19
|
|
|
20
|
-
本文档将指导你如何在
|
|
20
|
+
本文档将指导你如何在 LobeHub 中使用 Google Gemma:
|
|
21
21
|
|
|
22
22
|
<Steps>
|
|
23
23
|
### 本地安装 Ollama
|
|
@@ -32,18 +32,18 @@ tags:
|
|
|
32
32
|
ollama pull gemma
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
-
<Image alt={'使用 Ollama 拉取 Gemma 模型'} height={473} inStep src={'
|
|
35
|
+
<Image alt={'使用 Ollama 拉取 Gemma 模型'} height={473} inStep src={'/blog/assets28616219/7049a811-a08b-45d3-8491-970f579c2ebd.webp'} width={791} />
|
|
36
36
|
|
|
37
37
|
### 选择 Gemma 模型
|
|
38
38
|
|
|
39
39
|
在会话页面中,选择模型面板打开,然后选择 Gemma 模型。
|
|
40
40
|
|
|
41
|
-
<Image alt={'模型选择面板中选择 Gemma 模型'} height={629} inStep src={'
|
|
41
|
+
<Image alt={'模型选择面板中选择 Gemma 模型'} height={629} inStep src={'/blog/assets28616219/69414c79-642e-4323-9641-bfa43a74fcc8.webp'} width={791} />
|
|
42
42
|
|
|
43
43
|
<Callout type={'info'}>
|
|
44
44
|
如果你没有在模型选择面板中看到 Ollama 服务商,请查阅 [与 Ollama
|
|
45
|
-
集成](/zh/docs/self-hosting/examples/ollama) 了解如何在
|
|
45
|
+
集成](/zh/docs/self-hosting/examples/ollama) 了解如何在 LobeHub 中开启 Ollama 服务商。
|
|
46
46
|
</Callout>
|
|
47
47
|
</Steps>
|
|
48
48
|
|
|
49
|
-
接下来,你就可以使用
|
|
49
|
+
接下来,你就可以使用 LobeHub 与本地 Gemma 模型对话了。
|
|
@@ -1,54 +1,52 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: Using Local Qwen Model in
|
|
3
|
-
description:
|
|
2
|
+
title: Using the Local Qwen Model in LobeHub
|
|
3
|
+
description: >-
|
|
4
|
+
Easily chat with the locally deployed Qwen model through LobeHub's integration
|
|
5
|
+
with Ollama. Learn how to install and select the Qwen model.
|
|
4
6
|
tags:
|
|
5
7
|
- Qwen
|
|
6
|
-
-
|
|
8
|
+
- Qwen Model
|
|
9
|
+
- LobeHub Integration
|
|
7
10
|
- Ollama
|
|
8
|
-
-
|
|
9
|
-
- AI大模型
|
|
11
|
+
- Local Deployment
|
|
10
12
|
---
|
|
11
13
|
|
|
12
14
|
# Using the Local Qwen Model
|
|
13
15
|
|
|
14
|
-
<Image alt={'Using Qwen in
|
|
16
|
+
<Image alt={'Using Qwen in LobeHub'} cover src={'/blog/assets17870709/b4a01219-e7b1-48a0-888c-f0271b18e3a6.webp'} />
|
|
15
17
|
|
|
16
|
-
[Qwen](https://github.com/QwenLM/Qwen1.5) is
|
|
18
|
+
[Qwen](https://github.com/QwenLM/Qwen1.5) is an open-source large language model (LLM) developed by Alibaba Cloud. It is officially described as an evolving AI model that achieves more accurate Chinese language understanding through extensive training data.
|
|
17
19
|
|
|
18
|
-
<Video src="
|
|
20
|
+
<Video src="/blog/assets28616219/31e5f625-8dc4-4a5f-a5fd-d28d0457782d.mp4" />
|
|
19
21
|
|
|
20
|
-
Now,
|
|
22
|
+
Now, thanks to LobeHub’s integration with [Ollama](https://ollama.com/), you can easily use the Qwen model locally within LobeHub.
|
|
23
|
+
|
|
24
|
+
This guide will walk you through how to use the locally deployed Qwen model in LobeHub:
|
|
21
25
|
|
|
22
26
|
<Steps>
|
|
23
|
-
|
|
27
|
+
### Install Ollama Locally
|
|
24
28
|
|
|
25
|
-
First, you need to install Ollama. For
|
|
29
|
+
First, you’ll need to install Ollama. For installation instructions, refer to the [Ollama usage guide](/en/docs/usage/providers/ollama).
|
|
26
30
|
|
|
27
|
-
|
|
31
|
+
### Pull the Qwen Model Using Ollama
|
|
28
32
|
|
|
29
|
-
|
|
33
|
+
Once Ollama is installed, you can pull the Qwen model locally. For example, to pull the 14b version of the model, run:
|
|
30
34
|
|
|
31
35
|
```bash
|
|
32
36
|
ollama pull qwen:14b
|
|
33
37
|
```
|
|
34
38
|
|
|
35
|
-
<
|
|
36
|
-
The local version of Qwen provides different model sizes to choose from. Please refer to the
|
|
37
|
-
[Qwen's Ollama integration page](https://ollama.com/library/qwen) to understand how to choose the
|
|
38
|
-
model size.
|
|
39
|
-
</Callout>
|
|
40
|
-
|
|
41
|
-
<Image alt={'Use Ollama Pull Qwen Model'} height={473} inStep src={'https://github.com/lobehub/lobe-chat/assets/1845053/fe34fdfe-c2e4-4d6a-84d7-4ebc61b2516a'} />
|
|
39
|
+
<Image alt={'Pulling the Qwen model using Ollama'} height={473} inStep src={'/blog/assets1845053/fe34fdfe-c2e4-4d6a-84d7-4ebc61b2516a.webp'} />
|
|
42
40
|
|
|
43
41
|
### Select the Qwen Model
|
|
44
42
|
|
|
45
|
-
In the
|
|
43
|
+
In the chat interface, open the model selection panel and choose the Qwen model.
|
|
46
44
|
|
|
47
|
-
<Image alt={'
|
|
45
|
+
<Image alt={'Selecting the Qwen model in the model panel'} height={430} inStep src={'/blog/assets28616219/e0608cca-f62f-414a-bc55-28a61ba21f14.webp'} />
|
|
48
46
|
|
|
49
47
|
<Callout type={'info'}>
|
|
50
|
-
If you
|
|
48
|
+
If you don’t see the Ollama provider in the model selection panel, refer to the [Ollama Integration Guide](/en/docs/self-hosting/examples/ollama) to learn how to enable the Ollama provider in LobeHub.
|
|
51
49
|
</Callout>
|
|
52
50
|
</Steps>
|
|
53
51
|
|
|
54
|
-
|
|
52
|
+
You’re now ready to start chatting with the local Qwen model in LobeHub.
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: 在
|
|
3
|
-
description: 通过
|
|
2
|
+
title: 在 LobeHub 中使用本地通义千问 Qwen 模型
|
|
3
|
+
description: 通过 LobeHub 与 Ollama 的集成,轻松在本地部署的通义千问 Qwen 模型中进行对话。学习如何安装和选择 Qwen 模型。
|
|
4
4
|
tags:
|
|
5
5
|
- 通义千问
|
|
6
6
|
- Qwen模型
|
|
7
|
-
-
|
|
7
|
+
- LobeHub集成
|
|
8
8
|
- Ollama
|
|
9
9
|
- 本地部署
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# 使用本地通义千问 Qwen 模型
|
|
13
13
|
|
|
14
|
-
<Image alt={'在
|
|
14
|
+
<Image alt={'在 LobeHub 中使用 Qwen'} cover src={'/blog/assets17870709/b4a01219-e7b1-48a0-888c-f0271b18e3a6.webp'} />
|
|
15
15
|
|
|
16
16
|
[通义千问](https://github.com/QwenLM/Qwen1.5) 是阿里云开源的一款大语言模型(LLM),官方定义是一个不断进化的 AI 大模型,并通过更多的训练集内容达到更精准的中文识别能力。
|
|
17
17
|
|
|
18
|
-
<Video src="
|
|
18
|
+
<Video src="/blog/assets28616219/31e5f625-8dc4-4a5f-a5fd-d28d0457782d.mp4" />
|
|
19
19
|
|
|
20
|
-
现在,通过
|
|
20
|
+
现在,通过 LobeHub 与 [Ollama](https://ollama.com/) 的集成,你可以轻松地在 LobeHub 中使用 通义千问。
|
|
21
21
|
|
|
22
|
-
本文档将指导你如何在
|
|
22
|
+
本文档将指导你如何在 LobeHub 中使用通义千问本地部署版:
|
|
23
23
|
|
|
24
24
|
<Steps>
|
|
25
25
|
### 本地安装 Ollama
|
|
@@ -34,18 +34,18 @@ tags:
|
|
|
34
34
|
ollama pull qwen:14b
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
-
<Image alt={'使用 Ollama 拉取 Qwen 模型'} height={473} inStep src={'
|
|
37
|
+
<Image alt={'使用 Ollama 拉取 Qwen 模型'} height={473} inStep src={'/blog/assets1845053/fe34fdfe-c2e4-4d6a-84d7-4ebc61b2516a.webp'} />
|
|
38
38
|
|
|
39
39
|
### 选择 Qwen 模型
|
|
40
40
|
|
|
41
41
|
在会话页面中,选择模型面板打开,然后选择 Qwen 模型。
|
|
42
42
|
|
|
43
|
-
<Image alt={'模型选择面板中选择 Qwen 模型'} height={430} inStep src={'
|
|
43
|
+
<Image alt={'模型选择面板中选择 Qwen 模型'} height={430} inStep src={'/blog/assets28616219/e0608cca-f62f-414a-bc55-28a61ba21f14.webp'} />
|
|
44
44
|
|
|
45
45
|
<Callout type={'info'}>
|
|
46
46
|
如果你没有在模型选择面板中看到 Ollama 服务商,请查阅 [与 Ollama
|
|
47
|
-
集成](/zh/docs/self-hosting/examples/ollama) 了解如何在
|
|
47
|
+
集成](/zh/docs/self-hosting/examples/ollama) 了解如何在 LobeHub 中开启 Ollama 服务商。
|
|
48
48
|
</Callout>
|
|
49
49
|
</Steps>
|
|
50
50
|
|
|
51
|
-
接下来,你就可以使用
|
|
51
|
+
接下来,你就可以使用 LobeHub 与本地 Qwen 模型对话了。
|
|
@@ -1,98 +1,98 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: Using Ollama in
|
|
2
|
+
title: Using Ollama in LobeHub
|
|
3
3
|
description: >-
|
|
4
|
-
Learn how to use Ollama in
|
|
5
|
-
|
|
4
|
+
Learn how to use Ollama in LobeHub to run large language models locally and
|
|
5
|
+
experience cutting-edge AI capabilities.
|
|
6
6
|
tags:
|
|
7
7
|
- Ollama
|
|
8
|
-
- Local LLM
|
|
9
|
-
- Ollama WebUI
|
|
10
8
|
- Web UI
|
|
11
9
|
- API Key
|
|
10
|
+
- Local LLM
|
|
11
|
+
- Ollama WebUI
|
|
12
12
|
---
|
|
13
13
|
|
|
14
|
-
# Using Ollama in
|
|
14
|
+
# Using Ollama in LobeHub
|
|
15
15
|
|
|
16
|
-
<Image alt={'Using Ollama in
|
|
16
|
+
<Image alt={'Using Ollama in LobeHub'} borderless cover src={'/blog/assets17870709/f579b39b-e771-402c-a1d1-620e57a10c75.webp'} />
|
|
17
17
|
|
|
18
|
-
Ollama is a powerful framework for running large language models (LLMs) locally
|
|
18
|
+
Ollama is a powerful framework for running large language models (LLMs) locally. It supports a variety of models, including Llama 2, Mistral, and more. LobeHub now integrates seamlessly with Ollama, allowing you to leverage these models directly within your chat interface.
|
|
19
19
|
|
|
20
|
-
This
|
|
20
|
+
This guide will walk you through how to use Ollama in LobeHub:
|
|
21
21
|
|
|
22
|
-
<Video alt=
|
|
22
|
+
<Video alt={'Full demo of using Ollama in LobeHub'} height={580} src="/blog/assets28616219/c32b56db-c6a1-4876-9bc3-acbd37ec0c0c.mp4" />
|
|
23
23
|
|
|
24
24
|
## Using Ollama on macOS
|
|
25
25
|
|
|
26
26
|
<Steps>
|
|
27
|
-
###
|
|
27
|
+
### Install Ollama Locally
|
|
28
28
|
|
|
29
|
-
[Download Ollama for macOS](https://ollama.com/download?utm_source=lobehub\&utm_medium=docs\&utm_campaign=download-macos) and
|
|
29
|
+
[Download Ollama for macOS](https://ollama.com/download?utm_source=lobehub\&utm_medium=docs\&utm_campaign=download-macos), then unzip and install it.
|
|
30
30
|
|
|
31
31
|
### Configure Ollama for Cross-Origin Access
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
By default, Ollama only allows local access. To enable cross-origin access and port listening, set the `OLLAMA_ORIGINS` environment variable using `launchctl`:
|
|
34
34
|
|
|
35
35
|
```bash
|
|
36
36
|
launchctl setenv OLLAMA_ORIGINS "*"
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
-
After setting
|
|
39
|
+
After setting the variable, restart the Ollama application.
|
|
40
40
|
|
|
41
|
-
###
|
|
41
|
+
### Chat with Local LLMs in LobeHub
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
You can now start chatting with local LLMs in LobeHub.
|
|
44
44
|
|
|
45
|
-
<Image alt="
|
|
45
|
+
<Image alt="Chatting with llama3 in LobeHub" height="573" src="/blog/assets28616219/7f9a9a9f-fd91-4f59-aac9-3f26c6d49a1e.webp" />
|
|
46
46
|
</Steps>
|
|
47
47
|
|
|
48
48
|
## Using Ollama on Windows
|
|
49
49
|
|
|
50
50
|
<Steps>
|
|
51
|
-
###
|
|
51
|
+
### Install Ollama Locally
|
|
52
52
|
|
|
53
53
|
[Download Ollama for Windows](https://ollama.com/download?utm_source=lobehub\&utm_medium=docs\&utm_campaign=download-windows) and install it.
|
|
54
54
|
|
|
55
55
|
### Configure Ollama for Cross-Origin Access
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
By default, Ollama only allows local access. To enable cross-origin access and port listening, set the `OLLAMA_ORIGINS` environment variable.
|
|
58
58
|
|
|
59
|
-
On Windows, Ollama inherits your user and system environment variables
|
|
59
|
+
On Windows, Ollama inherits your user and system environment variables:
|
|
60
60
|
|
|
61
|
-
1.
|
|
62
|
-
2.
|
|
63
|
-
3.
|
|
64
|
-
4. Click `OK/Apply`
|
|
65
|
-
5.
|
|
61
|
+
1. Exit Ollama from the system tray.
|
|
62
|
+
2. Open the Control Panel and edit system environment variables.
|
|
63
|
+
3. Add or edit the `OLLAMA_ORIGINS` variable for your user account and set its value to `*`.
|
|
64
|
+
4. Click `OK/Apply` and restart your system.
|
|
65
|
+
5. Relaunch Ollama.
|
|
66
66
|
|
|
67
|
-
###
|
|
67
|
+
### Chat with Local LLMs in LobeHub
|
|
68
68
|
|
|
69
|
-
|
|
69
|
+
You can now start chatting with local LLMs in LobeHub.
|
|
70
70
|
</Steps>
|
|
71
71
|
|
|
72
72
|
## Using Ollama on Linux
|
|
73
73
|
|
|
74
74
|
<Steps>
|
|
75
|
-
###
|
|
75
|
+
### Install Ollama Locally
|
|
76
76
|
|
|
77
|
-
|
|
77
|
+
Run the following command to install:
|
|
78
78
|
|
|
79
79
|
```bash
|
|
80
80
|
curl -fsSL https://ollama.com/install.sh | sh
|
|
81
81
|
```
|
|
82
82
|
|
|
83
|
-
Alternatively,
|
|
83
|
+
Alternatively, refer to the [manual installation guide for Linux](https://github.com/ollama/ollama/blob/main/docs/linux.md).
|
|
84
84
|
|
|
85
85
|
### Configure Ollama for Cross-Origin Access
|
|
86
86
|
|
|
87
|
-
|
|
87
|
+
By default, Ollama only allows local access. To enable cross-origin access and port listening, set the `OLLAMA_ORIGINS` environment variable. If Ollama is running as a systemd service, use `systemctl` to configure it:
|
|
88
88
|
|
|
89
|
-
1. Edit the systemd service
|
|
89
|
+
1. Edit the systemd service with:
|
|
90
90
|
|
|
91
91
|
```bash
|
|
92
92
|
sudo systemctl edit ollama.service
|
|
93
93
|
```
|
|
94
94
|
|
|
95
|
-
2. Add
|
|
95
|
+
2. Add the following under the `[Service]` section:
|
|
96
96
|
|
|
97
97
|
```bash
|
|
98
98
|
[Service]
|
|
@@ -101,24 +101,24 @@ This document will guide you on how to use Ollama in LobeChat:
|
|
|
101
101
|
```
|
|
102
102
|
|
|
103
103
|
3. Save and exit.
|
|
104
|
-
4. Reload
|
|
104
|
+
4. Reload systemd and restart Ollama:
|
|
105
105
|
|
|
106
106
|
```bash
|
|
107
107
|
sudo systemctl daemon-reload
|
|
108
108
|
sudo systemctl restart ollama
|
|
109
109
|
```
|
|
110
110
|
|
|
111
|
-
###
|
|
111
|
+
### Chat with Local LLMs in LobeHub
|
|
112
112
|
|
|
113
|
-
|
|
113
|
+
You can now start chatting with local LLMs in LobeHub.
|
|
114
114
|
</Steps>
|
|
115
115
|
|
|
116
|
-
##
|
|
116
|
+
## Using Ollama with Docker
|
|
117
117
|
|
|
118
118
|
<Steps>
|
|
119
|
-
###
|
|
119
|
+
### Pull the Ollama Docker Image
|
|
120
120
|
|
|
121
|
-
If you prefer using Docker, Ollama provides an official
|
|
121
|
+
If you prefer using Docker, Ollama provides an official image. Pull it with:
|
|
122
122
|
|
|
123
123
|
```bash
|
|
124
124
|
docker pull ollama/ollama
|
|
@@ -126,48 +126,48 @@ This document will guide you on how to use Ollama in LobeChat:
|
|
|
126
126
|
|
|
127
127
|
### Configure Ollama for Cross-Origin Access
|
|
128
128
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
If Ollama runs as a Docker container, you can add the environment variable to the `docker run` command.
|
|
129
|
+
By default, Ollama only allows local access. To enable cross-origin access and port listening, set the `OLLAMA_ORIGINS` environment variable in your `docker run` command:
|
|
132
130
|
|
|
133
131
|
```bash
|
|
134
132
|
docker run -d --gpus=all -v ollama:/root/.ollama -e OLLAMA_ORIGINS="*" -p 11434:11434 --name ollama ollama/ollama
|
|
135
133
|
```
|
|
136
134
|
|
|
137
|
-
###
|
|
135
|
+
### Chat with Local LLMs in LobeHub
|
|
138
136
|
|
|
139
|
-
|
|
137
|
+
You can now start chatting with local LLMs in LobeHub.
|
|
140
138
|
</Steps>
|
|
141
139
|
|
|
142
140
|
## Installing Ollama Models
|
|
143
141
|
|
|
144
|
-
Ollama supports
|
|
142
|
+
Ollama supports a wide range of models. You can browse the available models in the [Ollama Library](https://ollama.com/library) and choose the ones that best suit your needs.
|
|
145
143
|
|
|
146
|
-
###
|
|
144
|
+
### Install via LobeHub
|
|
147
145
|
|
|
148
|
-
|
|
146
|
+
LobeHub comes pre-configured with popular LLMs like llama3, Gemma, and Mistral. When you select a model for the first time, LobeHub will prompt you to download it.
|
|
149
147
|
|
|
150
|
-
<Image alt="
|
|
148
|
+
<Image alt="LobeHub prompts to install Ollama model" height="460" src="/blog/assets28616219/4e81decc-776c-43b8-9a54-dfb43e9f601a.webp" />
|
|
151
149
|
|
|
152
|
-
Once
|
|
150
|
+
Once the download is complete, you can start chatting.
|
|
153
151
|
|
|
154
|
-
###
|
|
152
|
+
### Pull Models via Ollama CLI
|
|
155
153
|
|
|
156
|
-
Alternatively, you can install models
|
|
154
|
+
Alternatively, you can install models directly via the terminal. For example, to install llama3:
|
|
157
155
|
|
|
158
156
|
```bash
|
|
159
157
|
ollama pull llama3
|
|
160
158
|
```
|
|
161
159
|
|
|
162
|
-
<Video height=
|
|
160
|
+
<Video height={524} src="/blog/assets28616219/95828c11-0ae5-4dfa-84ed-854124e927a6.mp4" />
|
|
163
161
|
|
|
164
162
|
## Custom Configuration
|
|
165
163
|
|
|
166
|
-
You can
|
|
164
|
+
You can configure Ollama settings in LobeHub under `Settings` -> `AI Providers`. Here, you can set the proxy, model name, and more.
|
|
167
165
|
|
|
168
|
-
<Image alt={'Ollama
|
|
166
|
+
<Image alt={'Ollama provider settings'} height={274} src={'/blog/assets28616219/54b3696b-5b13-4761-8c1b-1e664867b2dd.webp'} />
|
|
169
167
|
|
|
170
168
|
<Callout type={'info'}>
|
|
171
|
-
|
|
172
|
-
LobeChat to meet integration needs with Ollama.
|
|
169
|
+
To learn how to deploy LobeHub with Ollama integration, visit [Integrating with Ollama](/en/docs/self-hosting/examples/ollama).
|
|
173
170
|
</Callout>
|
|
171
|
+
|
|
172
|
+
```
|
|
173
|
+
```
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: 在
|
|
3
|
-
description: 了解如何在
|
|
2
|
+
title: 在 LobeHub 中使用 Ollama
|
|
3
|
+
description: 了解如何在 LobeHub 中使用 Ollama ,在你的本地运行大型语言模型,获得最前沿的 AI 使用体验。
|
|
4
4
|
tags:
|
|
5
5
|
- Ollama
|
|
6
6
|
- Web UI
|
|
@@ -9,15 +9,15 @@ tags:
|
|
|
9
9
|
- Ollama WebUI
|
|
10
10
|
---
|
|
11
11
|
|
|
12
|
-
# 在
|
|
12
|
+
# 在 LobeHub 中使用 Ollama
|
|
13
13
|
|
|
14
|
-
<Image alt={'在
|
|
14
|
+
<Image alt={'在 LobeHub 中使用 Ollama'} borderless cover src={'/blog/assets17870709/f579b39b-e771-402c-a1d1-620e57a10c75.webp'} />
|
|
15
15
|
|
|
16
|
-
Ollama 是一款强大的本地运行大型语言模型(LLM)的框架,支持多种语言模型,包括 Llama 2, Mistral 等。现在,
|
|
16
|
+
Ollama 是一款强大的本地运行大型语言模型(LLM)的框架,支持多种语言模型,包括 Llama 2, Mistral 等。现在,LobeHub 已经支持与 Ollama 的集成,这意味着你可以在 LobeHub 中轻松使用 Ollama 提供的语言模型来增强你的应用。
|
|
17
17
|
|
|
18
|
-
本文档将指导你如何在
|
|
18
|
+
本文档将指导你如何在 LobeHub 中使用 Ollama:
|
|
19
19
|
|
|
20
|
-
<Video alt={'在
|
|
20
|
+
<Video alt={'在 LobeHub 中使用 Ollama的完整演示'} height={580} src="/blog/assets28616219/c32b56db-c6a1-4876-9bc3-acbd37ec0c0c.mp4" />
|
|
21
21
|
|
|
22
22
|
## 在 macOS 下使用 Ollama
|
|
23
23
|
|
|
@@ -36,11 +36,11 @@ Ollama 是一款强大的本地运行大型语言模型(LLM)的框架,支
|
|
|
36
36
|
|
|
37
37
|
完成设置后,需要重启 Ollama 应用程序。
|
|
38
38
|
|
|
39
|
-
### 在
|
|
39
|
+
### 在 LobeHub 中与本地大模型对话
|
|
40
40
|
|
|
41
|
-
接下来,你就可以使用
|
|
41
|
+
接下来,你就可以使用 LobeHub 与本地 LLM 对话了。
|
|
42
42
|
|
|
43
|
-
<Image alt="在
|
|
43
|
+
<Image alt="在 LobeHub 中与 llama3 对话" height="573" src="/blog/assets28616219/7f9a9a9f-fd91-4f59-aac9-3f26c6d49a1e.webp" />
|
|
44
44
|
</Steps>
|
|
45
45
|
|
|
46
46
|
## 在 windows 下使用 Ollama
|
|
@@ -62,9 +62,9 @@ Ollama 是一款强大的本地运行大型语言模型(LLM)的框架,支
|
|
|
62
62
|
4. 点击`OK/应用`保存后重启系统。
|
|
63
63
|
5. 重新运行`Ollama`。
|
|
64
64
|
|
|
65
|
-
### 在
|
|
65
|
+
### 在 LobeHub 中与本地大模型对话
|
|
66
66
|
|
|
67
|
-
接下来,你就可以使用
|
|
67
|
+
接下来,你就可以使用 LobeHub 与本地 LLM 对话了。
|
|
68
68
|
</Steps>
|
|
69
69
|
|
|
70
70
|
## 在 linux 下使用 Ollama
|
|
@@ -106,9 +106,9 @@ Ollama 是一款强大的本地运行大型语言模型(LLM)的框架,支
|
|
|
106
106
|
sudo systemctl restart ollama
|
|
107
107
|
```
|
|
108
108
|
|
|
109
|
-
### 在
|
|
109
|
+
### 在 LobeHub 中与本地大模型对话
|
|
110
110
|
|
|
111
|
-
接下来,你就可以使用
|
|
111
|
+
接下来,你就可以使用 LobeHub 与本地 LLM 对话了。
|
|
112
112
|
</Steps>
|
|
113
113
|
|
|
114
114
|
## 使用 docker 部署使用 Ollama
|
|
@@ -132,20 +132,20 @@ Ollama 是一款强大的本地运行大型语言模型(LLM)的框架,支
|
|
|
132
132
|
docker run -d --gpus=all -v ollama:/root/.ollama -e OLLAMA_ORIGINS="*" -p 11434:11434 --name ollama ollama/ollama
|
|
133
133
|
```
|
|
134
134
|
|
|
135
|
-
### 在
|
|
135
|
+
### 在 LobeHub 中与本地大模型对话
|
|
136
136
|
|
|
137
|
-
接下来,你就可以使用
|
|
137
|
+
接下来,你就可以使用 LobeHub 与本地 LLM 对话了。
|
|
138
138
|
</Steps>
|
|
139
139
|
|
|
140
140
|
## 安装 Ollama 模型
|
|
141
141
|
|
|
142
142
|
Ollama 支持多种模型,你可以在 [Ollama Library](https://ollama.com/library) 中查看可用的模型列表,并根据需求选择合适的模型。
|
|
143
143
|
|
|
144
|
-
###
|
|
144
|
+
### LobeHub 中安装
|
|
145
145
|
|
|
146
|
-
在
|
|
146
|
+
在 LobeHub 中,我们默认开启了一些常用的大语言模型,例如 llama3、 Gemma 、 Mistral 等。当你选中模型进行对话时,我们会提示你需要下载该模型。
|
|
147
147
|
|
|
148
|
-
<Image alt="
|
|
148
|
+
<Image alt="LobeHub 提示安装 Ollama 模型" height="460" src="/blog/assets28616219/4e81decc-776c-43b8-9a54-dfb43e9f601a.webp" />
|
|
149
149
|
|
|
150
150
|
下载完成后即可开始对话。
|
|
151
151
|
|
|
@@ -157,15 +157,15 @@ Ollama 支持多种模型,你可以在 [Ollama Library](https://ollama.com/lib
|
|
|
157
157
|
ollama pull llama3
|
|
158
158
|
```
|
|
159
159
|
|
|
160
|
-
<Video height={524} src="
|
|
160
|
+
<Video height={524} src="/blog/assets28616219/95828c11-0ae5-4dfa-84ed-854124e927a6.mp4" />
|
|
161
161
|
|
|
162
162
|
## 自定义配置
|
|
163
163
|
|
|
164
164
|
你可以在 `设置` -> `AI 服务商` 中找到 Ollama 的配置选项,你可以在这里配置 Ollama 的代理、模型名称等。
|
|
165
165
|
|
|
166
|
-
<Image alt={'Ollama 服务商设置'} height={274} src={'
|
|
166
|
+
<Image alt={'Ollama 服务商设置'} height={274} src={'/blog/assets28616219/54b3696b-5b13-4761-8c1b-1e664867b2dd.webp'} />
|
|
167
167
|
|
|
168
168
|
<Callout type={'info'}>
|
|
169
|
-
你可以前往 [与 Ollama 集成](/zh/docs/self-hosting/examples/ollama) 了解如何部署
|
|
169
|
+
你可以前往 [与 Ollama 集成](/zh/docs/self-hosting/examples/ollama) 了解如何部署 LobeHub
|
|
170
170
|
,以满足与 Ollama 的集成需求。
|
|
171
171
|
</Callout>
|