@lobehub/chat 1.0.13 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/README.md +16 -14
- package/README.zh-CN.md +16 -14
- package/docs/self-hosting/advanced/feature-flags.zh-CN.mdx +2 -1
- package/docs/self-hosting/advanced/model-list.zh-CN.mdx +1 -0
- package/docs/self-hosting/advanced/server-database.mdx +4 -3
- package/docs/self-hosting/advanced/server-database.zh-CN.mdx +1 -0
- package/docs/self-hosting/advanced/settings-url-share.mdx +5 -4
- package/docs/self-hosting/advanced/settings-url-share.zh-CN.mdx +5 -4
- package/docs/self-hosting/advanced/sso-providers/zitadel.mdx +3 -3
- package/docs/self-hosting/advanced/sso-providers/zitadel.zh-CN.mdx +2 -1
- package/docs/self-hosting/advanced/upstream-sync.zh-CN.mdx +10 -10
- package/docs/self-hosting/examples/ollama.mdx +23 -23
- package/docs/self-hosting/examples/ollama.zh-CN.mdx +23 -24
- package/docs/self-hosting/platform/docker-compose.zh-CN.mdx +2 -3
- package/docs/self-hosting/platform/vercel.mdx +2 -2
- package/docs/self-hosting/platform/vercel.zh-CN.mdx +2 -1
- package/docs/self-hosting/platform/zeabur.mdx +6 -7
- package/docs/self-hosting/platform/zeabur.zh-CN.mdx +6 -7
- package/docs/usage/agents/prompt.mdx +1 -1
- package/docs/usage/agents/prompt.zh-CN.mdx +1 -1
- package/docs/usage/features/auth.mdx +13 -8
- package/docs/usage/features/auth.zh-CN.mdx +5 -3
- package/docs/usage/features/database.mdx +20 -14
- package/docs/usage/features/database.zh-CN.mdx +1 -1
- package/docs/usage/features/local-llm.mdx +5 -0
- package/docs/usage/features/local-llm.zh-CN.mdx +5 -0
- package/docs/usage/features/multi-ai-providers.mdx +5 -0
- package/docs/usage/features/multi-ai-providers.zh-CN.mdx +5 -0
- package/docs/usage/features/plugin-system.zh-CN.mdx +2 -1
- package/docs/usage/features/pwa.mdx +3 -2
- package/docs/usage/features/pwa.zh-CN.mdx +3 -2
- package/docs/usage/providers/01ai.mdx +86 -0
- package/docs/usage/providers/01ai.zh-CN.mdx +85 -0
- package/docs/usage/providers/anthropic.mdx +79 -0
- package/docs/usage/providers/anthropic.zh-CN.mdx +74 -0
- package/docs/usage/providers/azure.mdx +89 -0
- package/docs/usage/providers/azure.zh-CN.mdx +82 -0
- package/docs/usage/providers/bedrock.mdx +140 -0
- package/docs/usage/providers/bedrock.zh-CN.mdx +135 -0
- package/docs/usage/providers/deepseek.mdx +91 -0
- package/docs/usage/providers/deepseek.zh-CN.mdx +86 -0
- package/docs/usage/providers/gemini.mdx +83 -0
- package/docs/usage/providers/gemini.zh-CN.mdx +80 -0
- package/docs/usage/providers/groq.mdx +1 -3
- package/docs/usage/providers/groq.zh-CN.mdx +1 -1
- package/docs/usage/providers/minimax.mdx +89 -0
- package/docs/usage/providers/minimax.zh-CN.mdx +85 -0
- package/docs/usage/providers/mistral.mdx +71 -0
- package/docs/usage/providers/mistral.zh-CN.mdx +66 -0
- package/docs/usage/providers/moonshot.mdx +70 -0
- package/docs/usage/providers/moonshot.zh-CN.mdx +66 -0
- package/docs/usage/providers/ollama/gemma.mdx +1 -1
- package/docs/usage/providers/ollama/gemma.zh-CN.mdx +1 -1
- package/docs/usage/providers/ollama/qwen.mdx +1 -1
- package/docs/usage/providers/ollama/qwen.zh-CN.mdx +1 -1
- package/docs/usage/providers/ollama.mdx +1 -1
- package/docs/usage/providers/ollama.zh-CN.mdx +1 -1
- package/docs/usage/providers/openai.mdx +95 -0
- package/docs/usage/providers/openai.zh-CN.mdx +87 -0
- package/docs/usage/providers/openrouter.mdx +111 -0
- package/docs/usage/providers/openrouter.zh-CN.mdx +109 -0
- package/docs/usage/providers/perplexity.mdx +64 -0
- package/docs/usage/providers/perplexity.zh-CN.mdx +61 -0
- package/docs/usage/providers/qwen.mdx +93 -0
- package/docs/usage/providers/qwen.zh-CN.mdx +86 -0
- package/docs/usage/providers/stepfun.mdx +69 -0
- package/docs/usage/providers/stepfun.zh-CN.mdx +64 -0
- package/docs/usage/providers/togetherai.mdx +74 -0
- package/docs/usage/providers/togetherai.zh-CN.mdx +71 -0
- package/docs/usage/providers/zhipu.mdx +69 -0
- package/docs/usage/providers/zhipu.zh-CN.mdx +64 -0
- package/docs/usage/providers.mdx +36 -0
- package/docs/usage/providers.zh-CN.mdx +34 -0
- package/docs/usage/start.mdx +2 -0
- package/docs/usage/start.zh-CN.mdx +2 -0
- package/locales/ar/setting.json +1 -0
- package/locales/bg-BG/setting.json +1 -0
- package/locales/de-DE/setting.json +1 -0
- package/locales/en-US/setting.json +1 -0
- package/locales/es-ES/setting.json +1 -0
- package/locales/fr-FR/setting.json +1 -0
- package/locales/it-IT/setting.json +1 -0
- package/locales/ja-JP/setting.json +1 -0
- package/locales/ko-KR/setting.json +1 -0
- package/locales/nl-NL/setting.json +1 -0
- package/locales/pl-PL/setting.json +1 -0
- package/locales/pt-BR/setting.json +1 -0
- package/locales/ru-RU/setting.json +1 -0
- package/locales/tr-TR/setting.json +1 -0
- package/locales/vi-VN/setting.json +1 -0
- package/locales/zh-CN/setting.json +1 -0
- package/locales/zh-TW/setting.json +1 -0
- package/package.json +6 -5
- package/src/app/(main)/settings/llm/ProviderList/providers.tsx +33 -4
- package/src/app/(main)/settings/llm/components/ProviderConfig/index.tsx +41 -11
- package/src/app/(main)/settings/llm/index.tsx +1 -2
- package/src/features/ChatInput/useSend.ts +2 -1
- package/src/features/Conversation/Messages/Assistant/ToolCalls/index.tsx +1 -1
- package/src/features/Conversation/Messages/components/Arguments.tsx +5 -3
- package/src/features/Conversation/Messages/hooks/useYamlArguments.ts +5 -2
- package/src/locales/default/setting.ts +1 -0
- package/src/store/chat/slices/plugin/action.test.ts +5 -5
- package/src/store/chat/slices/plugin/action.ts +6 -2
- package/src/store/tool/slices/builtin/action.test.ts +8 -11
- package/src/store/tool/slices/builtin/action.ts +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
### [Version 1.0.14](https://github.com/lobehub/lobe-chat/compare/v1.0.13...v1.0.14)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2024-06-20**</sup>
|
|
8
|
+
|
|
9
|
+
#### 🐛 Bug Fixes
|
|
10
|
+
|
|
11
|
+
- **misc**: Fix to send image without text.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### What's fixed
|
|
19
|
+
|
|
20
|
+
- **misc**: Fix to send image without text, closes [#2952](https://github.com/lobehub/lobe-chat/issues/2952) ([b3e915e](https://github.com/lobehub/lobe-chat/commit/b3e915e))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
5
30
|
### [Version 1.0.13](https://github.com/lobehub/lobe-chat/compare/v1.0.12...v1.0.13)
|
|
6
31
|
|
|
7
32
|
<sup>Released on **2024-06-19**</sup>
|
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ An open-source, modern-design ChatGPT/LLMs UI/Framework.<br/>
|
|
|
8
8
|
Supports speech-synthesis, multi-modal, and extensible ([function call][docs-functionc-call]) plugin system.<br/>
|
|
9
9
|
One-click **FREE** deployment of your private OpenAI ChatGPT/Claude/Gemini/Groq/Ollama chat application.
|
|
10
10
|
|
|
11
|
-
**English** · [简体中文](./README.zh-CN.md) · [Changelog](./CHANGELOG.md) · [Documents][docs] · [
|
|
11
|
+
**English** · [简体中文](./README.zh-CN.md) · [Official Site][official-site] · [Changelog](./CHANGELOG.md) · [Documents][docs] · [Blog][blog] · [Feedback][github-issues-link]
|
|
12
12
|
|
|
13
13
|
<!-- SHIELD GROUP -->
|
|
14
14
|
|
|
@@ -265,14 +265,14 @@ Our marketplace is not just a showcase platform but also a collaborative space.
|
|
|
265
265
|
|
|
266
266
|
<!-- AGENT LIST -->
|
|
267
267
|
|
|
268
|
-
| Recent Submits | Description
|
|
269
|
-
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
270
|
-
| [
|
|
271
|
-
| [
|
|
272
|
-
| [
|
|
273
|
-
| [
|
|
268
|
+
| Recent Submits | Description |
|
|
269
|
+
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
270
|
+
| [Fastapi Project Development Assistant](https://chat-preview.lobehub.com/market?agent=fastapi-development)<br/><sup>By **[xwxw098](https://github.com/xwxw098)** on **2024-06-19**</sup> | Proficient in Python modular development, skilled in using FastAPI, PostgreSQL, Tortoise-ORM, and other technologies, able to provide clear code structure and detailed comments for large projects.<br/>`fast-api` `python` `modular-development` |
|
|
271
|
+
| [NovelAI Drawing Assistant](https://chat-preview.lobehub.com/market?agent=novel-ai-pormpt-helper)<br/><sup>By **[WallBreakerNO4](https://github.com/WallBreakerNO4)** on **2024-06-18**</sup> | I can turn the scenes you describe into prompts for NovelAI<br/>`deep-learning` `image-generation` `algorithm` `prompt` |
|
|
272
|
+
| [Pseudo Code Prompt Word Generator Expert](https://chat-preview.lobehub.com/market?agent=pseudocode-prompt-master)<br/><sup>By **[yayoinoyume](https://github.com/yayoinoyume)** on **2024-06-16**</sup> | Pseudo Code Prompt Word Generator Expert allows users to directly input prompt word design requirements and returns designed pseudo code prompt words directly.<br/>`prompt` `prompt-word` `pseudo-code` |
|
|
273
|
+
| [Mr. MySQL](https://chat-preview.lobehub.com/market?agent=mysql-haoteacher)<br/><sup>By **[yayoinoyume](https://github.com/yayoinoyume)** on **2024-06-09**</sup> | Mr. MySQL is a great teacher to help everyone learn MySQL<br/>`mysql` `programming` `learning` |
|
|
274
274
|
|
|
275
|
-
> 📊 Total agents: [<kbd>**
|
|
275
|
+
> 📊 Total agents: [<kbd>**291**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
|
|
276
276
|
|
|
277
277
|
<!-- AGENT LIST -->
|
|
278
278
|
|
|
@@ -671,6 +671,7 @@ This project is [Apache 2.0](./LICENSE) licensed.
|
|
|
671
671
|
<!-- LINK GROUP -->
|
|
672
672
|
|
|
673
673
|
[back-to-top]: https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square
|
|
674
|
+
[blog]: https://lobehub.com/blog
|
|
674
675
|
[chat-desktop]: https://raw.githubusercontent.com/lobehub/lobe-chat/lighthouse/lighthouse/chat/desktop/pagespeed.svg
|
|
675
676
|
[chat-desktop-report]: https://lobehub.github.io/lobe-chat/lighthouse/chat/desktop/chat_preview_lobehub_com_chat.html
|
|
676
677
|
[chat-mobile]: https://raw.githubusercontent.com/lobehub/lobe-chat/lighthouse/lighthouse/chat/mobile/pagespeed.svg
|
|
@@ -697,7 +698,7 @@ This project is [Apache 2.0](./LICENSE) licensed.
|
|
|
697
698
|
[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
|
|
698
699
|
[docker-size-link]: https://hub.docker.com/r/lobehub/lobe-chat
|
|
699
700
|
[docker-size-shield]: https://img.shields.io/docker/image-size/lobehub/lobe-chat?color=369eff&labelColor=black&style=flat-square
|
|
700
|
-
[docs]: https://lobehub.com/docs
|
|
701
|
+
[docs]: https://lobehub.com/docs/usage/start
|
|
701
702
|
[docs-dev-guide]: https://github.com/lobehub/lobe-chat/wiki/index
|
|
702
703
|
[docs-docker]: https://lobehub.com/docs/self-hosting/platform/docker
|
|
703
704
|
[docs-env-var]: https://lobehub.com/docs/self-hosting/environment-variables
|
|
@@ -713,7 +714,7 @@ This project is [Apache 2.0](./LICENSE) licensed.
|
|
|
713
714
|
[docs-feat-theme]: https://lobehub.com/docs/usage/features/theme
|
|
714
715
|
[docs-feat-tts]: https://lobehub.com/docs/usage/features/tts
|
|
715
716
|
[docs-feat-vision]: https://lobehub.com/docs/usage/features/vision
|
|
716
|
-
[docs-functionc-call]: https://
|
|
717
|
+
[docs-functionc-call]: https://lobehub.com/blog/openai-function-call
|
|
717
718
|
[docs-lighthouse]: https://github.com/lobehub/lobe-chat/wiki/Lighthouse
|
|
718
719
|
[docs-plugin-dev]: https://lobehub.com/docs/usage/plugins/development
|
|
719
720
|
[docs-self-hosting]: https://lobehub.com/docs/self-hosting/start
|
|
@@ -733,7 +734,7 @@ This project is [Apache 2.0](./LICENSE) licensed.
|
|
|
733
734
|
[github-issues-link]: https://github.com/lobehub/lobe-chat/issues
|
|
734
735
|
[github-issues-shield]: https://img.shields.io/github/issues/lobehub/lobe-chat?color=ff80eb&labelColor=black&style=flat-square
|
|
735
736
|
[github-license-link]: https://github.com/lobehub/lobe-chat/blob/main/LICENSE
|
|
736
|
-
[github-license-shield]: https://img.shields.io/
|
|
737
|
+
[github-license-shield]: https://img.shields.io/badge/license-apache%202.0-white?labelColor=black&style=flat-square
|
|
737
738
|
[github-project-link]: https://github.com/lobehub/lobe-chat/projects
|
|
738
739
|
[github-release-link]: https://github.com/lobehub/lobe-chat/releases
|
|
739
740
|
[github-release-shield]: https://img.shields.io/github/v/release/lobehub/lobe-chat?color=369eff&labelColor=black&logo=github&style=flat-square
|
|
@@ -746,7 +747,7 @@ This project is [Apache 2.0](./LICENSE) licensed.
|
|
|
746
747
|
[image-banner]: https://github.com/lobehub/lobe-chat/assets/28616219/9f155dff-4737-429f-9cad-a70a1a860c5f
|
|
747
748
|
[image-feat-agent]: https://github-production-user-asset-6210df.s3.amazonaws.com/17870709/268670869-f1ffbf66-42b6-42cf-a937-9ce1f8328514.png
|
|
748
749
|
[image-feat-auth]: https://github.com/lobehub/lobe-chat/assets/17870709/8ce70e15-40df-451e-b700-66090fe5b8c2
|
|
749
|
-
[image-feat-database]: https://github.com/lobehub/lobe-chat/assets/17870709/
|
|
750
|
+
[image-feat-database]: https://github.com/lobehub/lobe-chat/assets/17870709/c27a0234-a4e9-40e5-8bcb-42d5ce7e40f9
|
|
750
751
|
[image-feat-local]: https://github.com/lobehub/lobe-chat/assets/28616219/ca9a21bc-ea6c-4c90-bf4a-fa53b4fb2b5c
|
|
751
752
|
[image-feat-mobile]: https://gw.alipayobjects.com/zos/kitchen/R441AuFS4W/mobile.webp
|
|
752
753
|
[image-feat-plugin]: https://github-production-user-asset-6210df.s3.amazonaws.com/17870709/268670883-33c43a5c-a512-467e-855c-fa299548cce5.png
|
|
@@ -776,6 +777,7 @@ This project is [Apache 2.0](./LICENSE) licensed.
|
|
|
776
777
|
[lobe-ui-github]: https://github.com/lobehub/lobe-ui
|
|
777
778
|
[lobe-ui-link]: https://www.npmjs.com/package/@lobehub/ui
|
|
778
779
|
[lobe-ui-shield]: https://img.shields.io/npm/v/@lobehub/ui?color=369eff&labelColor=black&logo=npm&logoColor=white&style=flat-square
|
|
780
|
+
[official-site]: https://lobehub.com
|
|
779
781
|
[pr-welcome-link]: https://github.com/lobehub/lobe-chat/pulls
|
|
780
782
|
[pr-welcome-shield]: https://img.shields.io/badge/🤯_pr_welcome-%E2%86%92-ffcb47?labelColor=black&style=for-the-badge
|
|
781
783
|
[profile-link]: https://github.com/lobehub
|
|
@@ -800,5 +802,5 @@ This project is [Apache 2.0](./LICENSE) licensed.
|
|
|
800
802
|
[submit-plugin-link]: https://github.com/lobehub/lobe-chat-plugins
|
|
801
803
|
[submit-plugin-shield]: https://img.shields.io/badge/🧩/🏪_submit_plugin-%E2%86%92-95f3d9?labelColor=black&style=for-the-badge
|
|
802
804
|
[vercel-link]: https://chat-preview.lobehub.com
|
|
803
|
-
[vercel-shield]: https://img.shields.io/
|
|
804
|
-
[vercel-shield-badge]: https://img.shields.io/
|
|
805
|
+
[vercel-shield]: https://img.shields.io/badge/vercel-online-55b467?labelColor=black&logo=vercel&style=flat-square
|
|
806
|
+
[vercel-shield-badge]: https://img.shields.io/badge/TRY%20LOBECHAT-ONLINE-55b467?labelColor=black&logo=vercel&style=for-the-badge
|
package/README.zh-CN.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
支持语音合成、多模态、可扩展的([function call][docs-functionc-call])插件系统<br/>
|
|
9
9
|
一键**免费**拥有你自己的 ChatGPT/Gemini/Claude/Ollama 应用
|
|
10
10
|
|
|
11
|
-
[English](./README.md) · **简体中文** · [更新日志](./CHANGELOG.md) · [文档][
|
|
11
|
+
[English](./README.md) · **简体中文** · [官网][official-site] · [更新日志](./CHANGELOG.md) · [文档][docs] · [博客][blog] · [反馈问题][github-issues-link]
|
|
12
12
|
|
|
13
13
|
<!-- SHIELD GROUP -->
|
|
14
14
|
|
|
@@ -253,14 +253,14 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
|
|
|
253
253
|
|
|
254
254
|
<!-- AGENT LIST -->
|
|
255
255
|
|
|
256
|
-
| 最近新增 | 助手说明
|
|
257
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
258
|
-
| [
|
|
259
|
-
| [
|
|
260
|
-
| [
|
|
261
|
-
| [
|
|
256
|
+
| 最近新增 | 助手说明 |
|
|
257
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
258
|
+
| [Fastapi 项目开发助手](https://chat-preview.lobehub.com/market?agent=fastapi-development)<br/><sup>By **[xwxw098](https://github.com/xwxw098)** on **2024-06-19**</sup> | 擅长 Python 模块化开发,熟练运用 FastAPI、PostgreSQL、Tortoise-ORM 等技术栈,能为大型项目提供清晰的代码结构并添加详细注释。<br/>`fast-api` `python` `模块化开发` |
|
|
259
|
+
| [NovelAI 绘画助手](https://chat-preview.lobehub.com/market?agent=novel-ai-pormpt-helper)<br/><sup>By **[WallBreakerNO4](https://github.com/WallBreakerNO4)** on **2024-06-18**</sup> | 我能将你描述的场景转成 NovelAI 的 prompt<br/>`深度学习` `图像生成` `算法` `提示符` |
|
|
260
|
+
| [伪代码提示词生成专家](https://chat-preview.lobehub.com/market?agent=pseudocode-prompt-master)<br/><sup>By **[yayoinoyume](https://github.com/yayoinoyume)** on **2024-06-16**</sup> | 伪代码提示词生成专家,用户直接输入提示词设计需求,直接返还设计的伪代码提示词<br/>`prompt` `提示词` `伪代码` |
|
|
261
|
+
| [Mysql 好先生](https://chat-preview.lobehub.com/market?agent=mysql-haoteacher)<br/><sup>By **[yayoinoyume](https://github.com/yayoinoyume)** on **2024-06-09**</sup> | mysql 好先生是帮助所有人学习 mysql 的好老师<br/>`mysql` `编程` `学习` |
|
|
262
262
|
|
|
263
|
-
> 📊 Total agents: [<kbd>**
|
|
263
|
+
> 📊 Total agents: [<kbd>**291**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
|
|
264
264
|
|
|
265
265
|
<!-- AGENT LIST -->
|
|
266
266
|
|
|
@@ -692,6 +692,7 @@ This project is [Apache 2.0](./LICENSE) licensed.
|
|
|
692
692
|
<!-- LINK GROUP -->
|
|
693
693
|
|
|
694
694
|
[back-to-top]: https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square
|
|
695
|
+
[blog]: https://lobehub.com/zh/blog
|
|
695
696
|
[chat-desktop]: https://raw.githubusercontent.com/lobehub/lobe-chat/lighthouse/lighthouse/chat/desktop/pagespeed.svg
|
|
696
697
|
[chat-desktop-report]: https://lobehub.github.io/lobe-chat/lighthouse/chat/desktop/chat_preview_lobehub_com_chat.html
|
|
697
698
|
[chat-mobile]: https://raw.githubusercontent.com/lobehub/lobe-chat/lighthouse/lighthouse/chat/mobile/pagespeed.svg
|
|
@@ -718,6 +719,7 @@ This project is [Apache 2.0](./LICENSE) licensed.
|
|
|
718
719
|
[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
|
|
719
720
|
[docker-size-link]: https://hub.docker.com/r/lobehub/lobe-chat
|
|
720
721
|
[docker-size-shield]: https://img.shields.io/docker/image-size/lobehub/lobe-chat?color=369eff&labelColor=black&style=flat-square
|
|
722
|
+
[docs]: https://lobehub.com/zh/docs/usage/start
|
|
721
723
|
[docs-dev-guide]: https://github.com/lobehub/lobe-chat/wiki/index
|
|
722
724
|
[docs-docker]: https://lobehub.com/docs/self-hosting/platform/docker
|
|
723
725
|
[docs-env-var]: https://lobehub.com/docs/self-hosting/environment-variables
|
|
@@ -733,7 +735,7 @@ This project is [Apache 2.0](./LICENSE) licensed.
|
|
|
733
735
|
[docs-feat-theme]: https://lobehub.com/docs/usage/features/theme
|
|
734
736
|
[docs-feat-tts]: https://lobehub.com/docs/usage/features/tts
|
|
735
737
|
[docs-feat-vision]: https://lobehub.com/docs/usage/features/vision
|
|
736
|
-
[docs-functionc-call]: https://
|
|
738
|
+
[docs-functionc-call]: https://lobehub.com/zh/blog/openai-function-call
|
|
737
739
|
[docs-lighthouse]: https://github.com/lobehub/lobe-chat/wiki/Lighthouse.zh-CN
|
|
738
740
|
[docs-plugin-dev]: https://lobehub.com/docs/usage/plugins/development
|
|
739
741
|
[docs-self-hosting]: https://lobehub.com/docs/self-hosting/start
|
|
@@ -748,13 +750,12 @@ This project is [Apache 2.0](./LICENSE) licensed.
|
|
|
748
750
|
[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
|
|
749
751
|
[github-contributors-link]: https://github.com/lobehub/lobe-chat/graphs/contributors
|
|
750
752
|
[github-contributors-shield]: https://img.shields.io/github/contributors/lobehub/lobe-chat?color=c4f042&labelColor=black&style=flat-square
|
|
751
|
-
[github-document-link]: https://lobehub.com/docs
|
|
752
753
|
[github-forks-link]: https://github.com/lobehub/lobe-chat/network/members
|
|
753
754
|
[github-forks-shield]: https://img.shields.io/github/forks/lobehub/lobe-chat?color=8ae8ff&labelColor=black&style=flat-square
|
|
754
755
|
[github-issues-link]: https://github.com/lobehub/lobe-chat/issues
|
|
755
756
|
[github-issues-shield]: https://img.shields.io/github/issues/lobehub/lobe-chat?color=ff80eb&labelColor=black&style=flat-square
|
|
756
757
|
[github-license-link]: https://github.com/lobehub/lobe-chat/blob/main/LICENSE
|
|
757
|
-
[github-license-shield]: https://img.shields.io/
|
|
758
|
+
[github-license-shield]: https://img.shields.io/badge/license-apache%202.0-white?labelColor=black&style=flat-square
|
|
758
759
|
[github-project-link]: https://github.com/lobehub/lobe-chat/projects
|
|
759
760
|
[github-release-link]: https://github.com/lobehub/lobe-chat/releases
|
|
760
761
|
[github-release-shield]: https://img.shields.io/github/v/release/lobehub/lobe-chat?color=369eff&labelColor=black&logo=github&style=flat-square
|
|
@@ -767,7 +768,7 @@ This project is [Apache 2.0](./LICENSE) licensed.
|
|
|
767
768
|
[image-banner]: https://github.com/lobehub/lobe-chat/assets/28616219/9f155dff-4737-429f-9cad-a70a1a860c5f
|
|
768
769
|
[image-feat-agent]: https://github-production-user-asset-6210df.s3.amazonaws.com/17870709/268670869-f1ffbf66-42b6-42cf-a937-9ce1f8328514.png
|
|
769
770
|
[image-feat-auth]: https://github.com/lobehub/lobe-chat/assets/17870709/8ce70e15-40df-451e-b700-66090fe5b8c2
|
|
770
|
-
[image-feat-database]: https://github.com/lobehub/lobe-chat/assets/17870709/
|
|
771
|
+
[image-feat-database]: https://github.com/lobehub/lobe-chat/assets/17870709/c27a0234-a4e9-40e5-8bcb-42d5ce7e40f9
|
|
771
772
|
[image-feat-local]: https://github.com/lobehub/lobe-chat/assets/28616219/ca9a21bc-ea6c-4c90-bf4a-fa53b4fb2b5c
|
|
772
773
|
[image-feat-mobile]: https://gw.alipayobjects.com/zos/kitchen/R441AuFS4W/mobile.webp
|
|
773
774
|
[image-feat-plugin]: https://github-production-user-asset-6210df.s3.amazonaws.com/17870709/268670883-33c43a5c-a512-467e-855c-fa299548cce5.png
|
|
@@ -797,6 +798,7 @@ This project is [Apache 2.0](./LICENSE) licensed.
|
|
|
797
798
|
[lobe-ui-github]: https://github.com/lobehub/lobe-ui
|
|
798
799
|
[lobe-ui-link]: https://www.npmjs.com/package/@lobehub/ui
|
|
799
800
|
[lobe-ui-shield]: https://img.shields.io/npm/v/@lobehub/ui?color=369eff&labelColor=black&logo=npm&logoColor=white&style=flat-square
|
|
801
|
+
[official-site]: https://lobehub.com
|
|
800
802
|
[pr-welcome-link]: https://github.com/lobehub/lobe-chat/pulls
|
|
801
803
|
[pr-welcome-shield]: https://img.shields.io/badge/🤯_pr_welcome-%E2%86%92-ffcb47?labelColor=black&style=for-the-badge
|
|
802
804
|
[profile-link]: https://github.com/lobehub
|
|
@@ -819,5 +821,5 @@ This project is [Apache 2.0](./LICENSE) licensed.
|
|
|
819
821
|
[submit-plugin-link]: https://github.com/lobehub/lobe-chat-plugins
|
|
820
822
|
[submit-plugin-shield]: https://img.shields.io/badge/🧩/🏪_submit_plugin-%E2%86%92-95f3d9?labelColor=black&style=for-the-badge
|
|
821
823
|
[vercel-link]: https://chat-preview.lobehub.com
|
|
822
|
-
[vercel-shield]: https://img.shields.io/
|
|
823
|
-
[vercel-shield-badge]: https://img.shields.io/
|
|
824
|
+
[vercel-shield]: https://img.shields.io/badge/vercel-online-55b467?labelColor=black&logo=vercel&style=flat-square
|
|
825
|
+
[vercel-shield-badge]: https://img.shields.io/badge/TRY%20LOBECHAT-ONLINE-55b467?labelColor=black&logo=vercel&style=for-the-badge
|
|
@@ -24,7 +24,8 @@ tags:
|
|
|
24
24
|
你可以通过上述配置语法来实现更多的功能组合。所有的功能配置项都是布尔类型,通过 `+` 来启用,通过 `-` 来关闭。
|
|
25
25
|
|
|
26
26
|
<Callout type={'tip'}>
|
|
27
|
-
注意:与 `OPENAI_MODEL_LIST` 变量不同,`FEATURE_FLAGS` 变量不支持 `all`
|
|
27
|
+
注意:与 `OPENAI_MODEL_LIST` 变量不同,`FEATURE_FLAGS` 变量不支持 `all`
|
|
28
|
+
关键字,你需要手动控制所有的功能标志(否则它们会采用对应的默认值)。
|
|
28
29
|
</Callout>
|
|
29
30
|
|
|
30
31
|
| 配置项 | 解释 | 默认值 |
|
|
@@ -12,6 +12,7 @@ tags:
|
|
|
12
12
|
- S3 Storage Service
|
|
13
13
|
- Configuration Guide
|
|
14
14
|
---
|
|
15
|
+
|
|
15
16
|
# Deploying Server-Side Database
|
|
16
17
|
|
|
17
18
|
LobeChat defaults to using a client-side database (IndexedDB) but also supports using a server-side database. LobeChat uses Postgres as the backend storage database. PostgreSQL is a powerful open-source relational database management system with high scalability and standard SQL support. It provides rich data types, concurrency control, data integrity, security, and programmability, making it suitable for complex applications and large-scale data management.
|
|
@@ -195,9 +196,9 @@ You have now successfully configured the Clerk identity authentication service.
|
|
|
195
196
|
LobeChat has long supported multimodal AI conversations, involving the function of uploading images to AI. In the client-side database solution, image files are stored as binary data in the browser's indexedDB database. However, this solution is not feasible in the server-side database. We need to configure the S3 storage service to store a large number of image files, and S3 can also serve as a storage solution for file uploads.
|
|
196
197
|
|
|
197
198
|
<Callout type={'info'}>
|
|
198
|
-
|
|
199
|
-
that comply with the Amazon S3 API. Common examples include Cloudflare R2 etc., all of
|
|
200
|
-
S3-compatible APIs.
|
|
199
|
+
In this article, S3 refers to a compatible S3 storage solution, which supports object storage
|
|
200
|
+
systems that comply with the Amazon S3 API. Common examples include Cloudflare R2 etc., all of
|
|
201
|
+
which support S3-compatible APIs.
|
|
201
202
|
</Callout>
|
|
202
203
|
|
|
203
204
|
<Steps>
|
|
@@ -12,6 +12,7 @@ tags:
|
|
|
12
12
|
- LobeChat
|
|
13
13
|
- Parameter Schema
|
|
14
14
|
---
|
|
15
|
+
|
|
15
16
|
# Share settings via URL
|
|
16
17
|
|
|
17
18
|
LobeChat support import settings from external URL to quickly set up LobeChat configuration.
|
|
@@ -71,8 +72,8 @@ console.log(url);
|
|
|
71
72
|
|
|
72
73
|
- Property name and type
|
|
73
74
|
|
|
74
|
-
| Property name | Type
|
|
75
|
-
| ------------- |
|
|
75
|
+
| Property name | Type |
|
|
76
|
+
| ------------- | -------------------------- |
|
|
76
77
|
| anthropic | `OpenAICompatibleKeyVault` |
|
|
77
78
|
| azure | `AzureOpenAIKeyVault` |
|
|
78
79
|
| bedrock | `AWSBedrockKeyVault` |
|
|
@@ -118,8 +119,8 @@ console.log(url);
|
|
|
118
119
|
export type UserModelProviderConfig = Record<string, ProviderConfig>;
|
|
119
120
|
```
|
|
120
121
|
|
|
121
|
-
| Property name | Type
|
|
122
|
-
| ------------- |
|
|
122
|
+
| Property name | Type |
|
|
123
|
+
| ------------- | ---------------- |
|
|
123
124
|
| anthropic | `ProviderConfig` |
|
|
124
125
|
| azure | `ProviderConfig` |
|
|
125
126
|
| bedrock | `ProviderConfig` |
|
|
@@ -11,6 +11,7 @@ tags:
|
|
|
11
11
|
- URL 导入
|
|
12
12
|
- URL 导出
|
|
13
13
|
---
|
|
14
|
+
|
|
14
15
|
# URL 分享设置参数
|
|
15
16
|
|
|
16
17
|
LobeChat 支持从外部 URL 导入设置参数,以便于快速设置 LobeChat 的配置。
|
|
@@ -69,8 +70,8 @@ console.log(url);
|
|
|
69
70
|
|
|
70
71
|
- 参数及其类型
|
|
71
72
|
|
|
72
|
-
| 参数名称 | 类型
|
|
73
|
-
| ---------- |
|
|
73
|
+
| 参数名称 | 类型 |
|
|
74
|
+
| ---------- | -------------------------- |
|
|
74
75
|
| anthropic | `OpenAICompatibleKeyVault` |
|
|
75
76
|
| azure | `AzureOpenAIKeyVault` |
|
|
76
77
|
| bedrock | `AWSBedrockKeyVault` |
|
|
@@ -116,8 +117,8 @@ console.log(url);
|
|
|
116
117
|
export type UserModelProviderConfig = Record<string, ProviderConfig>;
|
|
117
118
|
```
|
|
118
119
|
|
|
119
|
-
| 参数名称 | 类型
|
|
120
|
-
| ---------- |
|
|
120
|
+
| 参数名称 | 类型 |
|
|
121
|
+
| ---------- | ---------------- |
|
|
121
122
|
| anthropic | `ProviderConfig` |
|
|
122
123
|
| azure | `ProviderConfig` |
|
|
123
124
|
| bedrock | `ProviderConfig` |
|
|
@@ -57,7 +57,8 @@ http(s)://your-domain/api/auth/callback/zitadel
|
|
|
57
57
|
- You can fill in or modify redirect URIs after creating the application, but make sure the filled
|
|
58
58
|
URL is consistent with the deployed URL.
|
|
59
59
|
|
|
60
|
-
|
|
60
|
+
- Replace `http(s)://your-domain` with the actual URL that LobeChat is deployed to.
|
|
61
|
+
|
|
61
62
|
</Callout>
|
|
62
63
|
|
|
63
64
|
Confirm the configuration and click **Create**.
|
|
@@ -76,8 +77,7 @@ Save the **ClientId** and **ClientSecret** for later use.
|
|
|
76
77
|
src="https://github.com/lobehub/lobe-chat/assets/8692892/407b4eed-7f21-4aa6-b68f-9bae2faf09d0"
|
|
77
78
|
/>
|
|
78
79
|
|
|
79
|
-
In the application settings page, navigate to the **Token Settings** tab, enable **User Info inside
|
|
80
|
-
ID Token** option, and click **Save**.
|
|
80
|
+
In the application settings page, navigate to the **Token Settings** tab, enable **User Info inside ID Token** option, and click **Save**.
|
|
81
81
|
|
|
82
82
|
<Image
|
|
83
83
|
alt="Create ZITADEL Application S7"
|
|
@@ -53,7 +53,8 @@ http(s)://your-domain/api/auth/callback/zitadel
|
|
|
53
53
|
<Callout type={'important'}>
|
|
54
54
|
- 可以创建应用后再填写或修改重定向 URL,但请确保填写的 URL 与部署的 URL 一致。
|
|
55
55
|
|
|
56
|
-
|
|
56
|
+
- 请将 `http(s)://your-domain` 替换为 LobeChat 部署的实际 URL。
|
|
57
|
+
|
|
57
58
|
</Callout>
|
|
58
59
|
|
|
59
60
|
确认配置并点击「创建」。
|
|
@@ -101,38 +101,38 @@ OPENAI_MODEL_LIST=-gpt-4,-gpt-4-32k,-gpt-3.5-turbo-16k,gpt-3.5-turbo-1106=gpt-3.
|
|
|
101
101
|
```bash
|
|
102
102
|
#!/bin/bash
|
|
103
103
|
# auto-update-lobe-chat.sh
|
|
104
|
-
|
|
104
|
+
|
|
105
105
|
# 设置代理(可选)
|
|
106
106
|
# export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890
|
|
107
|
-
|
|
107
|
+
|
|
108
108
|
# 拉取最新的镜像并将输出存储在变量中
|
|
109
109
|
output=$(docker pull lobehub/lobe-chat:latest 2>&1)
|
|
110
|
-
|
|
110
|
+
|
|
111
111
|
# 检查拉取命令是否成功执行
|
|
112
112
|
if [ $? -ne 0 ]; then
|
|
113
113
|
exit 1
|
|
114
114
|
fi
|
|
115
|
-
|
|
115
|
+
|
|
116
116
|
# 检查输出中是否包含特定的字符串
|
|
117
117
|
echo "$output" | grep -q "Image is up to date for lobehub/lobe-chat:latest"
|
|
118
|
-
|
|
118
|
+
|
|
119
119
|
# 如果镜像已经是最新的,则不执行任何操作
|
|
120
120
|
if [ $? -eq 0 ]; then
|
|
121
121
|
exit 0
|
|
122
122
|
fi
|
|
123
|
-
|
|
123
|
+
|
|
124
124
|
echo "Detected lobe-chat update"
|
|
125
|
-
|
|
125
|
+
|
|
126
126
|
# 删除旧的容器
|
|
127
127
|
echo "Removed: $(docker rm -f lobe-chat)"
|
|
128
|
-
|
|
128
|
+
|
|
129
129
|
# 运行新的容器(请将env配置文件地址改为你的实际地址)
|
|
130
130
|
echo "Started: $(docker run -d --network=host --env-file path/to/lobe.env --name=lobe-chat --restart=always lobehub/lobe-chat)"
|
|
131
|
-
|
|
131
|
+
|
|
132
132
|
# 打印更新的时间和版本
|
|
133
133
|
echo "Update time: $(date)"
|
|
134
134
|
echo "Version: $(docker inspect lobehub/lobe-chat:latest | grep 'org.opencontainers.image.version' | awk -F'"' '{print $4}')"
|
|
135
|
-
|
|
135
|
+
|
|
136
136
|
# 清理不再使用的镜像
|
|
137
137
|
docker images | grep 'lobehub/lobe-chat' | grep -v 'latest' | awk '{print $3}' | xargs -r docker rmi > /dev/null 2>&1
|
|
138
138
|
echo "Removed old images."
|
|
@@ -40,13 +40,13 @@ When you first initiate Ollama, it is configured to allow access only from the l
|
|
|
40
40
|
|
|
41
41
|
### Ollama Environment Variables
|
|
42
42
|
|
|
43
|
-
| Environment Variable | Description
|
|
44
|
-
|
|
|
45
|
-
| `OLLAMA_HOST`
|
|
46
|
-
| `OLLAMA_ORIGINS`
|
|
47
|
-
| `OLLAMA_MODELS`
|
|
48
|
-
| `OLLAMA_KEEP_ALIVE` | Duration that the model stays loaded in GPU memory | "5m"
|
|
49
|
-
| `OLLAMA_DEBUG`
|
|
43
|
+
| Environment Variable | Description | Default Value | Additional Information |
|
|
44
|
+
| --- | --- | --- | --- |
|
|
45
|
+
| `OLLAMA_HOST` | Specifies the host and port for binding | "127.0.0.1:11434" | Use "0.0.0.0:port" to make the service accessible from any machine |
|
|
46
|
+
| `OLLAMA_ORIGINS` | Comma-separated list of permitted cross-origin sources | Restricted to local access | Set to "\*" to avoid CORS, please set on demand |
|
|
47
|
+
| `OLLAMA_MODELS` | Path to the directory where models are located | "~/.ollama/models" or "/usr/share/ollama/.ollama/models" | Can be customized based on requirements |
|
|
48
|
+
| `OLLAMA_KEEP_ALIVE` | Duration that the model stays loaded in GPU memory | "5m" | Dynamically loading and unloading models can reduce GPU load but may increase disk I/O |
|
|
49
|
+
| `OLLAMA_DEBUG` | Enable additional debugging logs by setting to 1 | Typically disabled | |
|
|
50
50
|
|
|
51
51
|
### Setting environment variables on Windows
|
|
52
52
|
|
|
@@ -64,10 +64,10 @@ If Ollama is run as a macOS application, environment variables should be set usi
|
|
|
64
64
|
|
|
65
65
|
1. For each environment variable, call `launchctl setenv`.
|
|
66
66
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
67
|
+
```bash
|
|
68
|
+
launchctl setenv OLLAMA_HOST "0.0.0.0"
|
|
69
|
+
launchctl setenv OLLAMA_ORIGINS "*"
|
|
70
|
+
```
|
|
71
71
|
|
|
72
72
|
2. Restart Ollama application.
|
|
73
73
|
|
|
@@ -77,25 +77,25 @@ If Ollama is run as a systemd service, environment variables should be set using
|
|
|
77
77
|
|
|
78
78
|
1. Edit the systemd service by calling `sudo systemctl edit ollama.service`.
|
|
79
79
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
80
|
+
```bash
|
|
81
|
+
sudo systemctl edit ollama.service
|
|
82
|
+
```
|
|
83
83
|
|
|
84
84
|
2. For each environment variable, add a line `Environment` under section `[Service]`:
|
|
85
85
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
86
|
+
```bash
|
|
87
|
+
[Service]
|
|
88
|
+
Environment="OLLAMA_HOST=0.0.0.0"
|
|
89
|
+
Environment="OLLAMA_ORIGINS=*"
|
|
90
|
+
```
|
|
91
91
|
|
|
92
92
|
3. Save and exit.
|
|
93
93
|
4. Reload `systemd` and restart Ollama:
|
|
94
94
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
95
|
+
```bash
|
|
96
|
+
sudo systemctl daemon-reload
|
|
97
|
+
sudo systemctl restart ollama
|
|
98
|
+
```
|
|
99
99
|
|
|
100
100
|
### Setting environment variables on Docker
|
|
101
101
|
|
|
@@ -38,13 +38,13 @@ docker run -d -p 3210:3210 -e OLLAMA_PROXY_URL=http://host.docker.internal:11434
|
|
|
38
38
|
|
|
39
39
|
### Ollama 环境变量
|
|
40
40
|
|
|
41
|
-
| 环境变量 | 描述
|
|
42
|
-
|
|
|
43
|
-
| `OLLAMA_HOST`
|
|
44
|
-
| `OLLAMA_ORIGINS`
|
|
45
|
-
| `OLLAMA_MODELS`
|
|
46
|
-
| `OLLAMA_KEEP_ALIVE`
|
|
47
|
-
| `OLLAMA_DEBUG`
|
|
41
|
+
| 环境变量 | 描述 | 默认值 | 附加说明 |
|
|
42
|
+
| --- | --- | --- | --- |
|
|
43
|
+
| `OLLAMA_HOST` | 绑定的主机和端口 | "127.0.0.1:11434" | 设置 0.0.0.0:端口号 可以指定所有人访问特定端口 |
|
|
44
|
+
| `OLLAMA_ORIGINS` | 允许的跨域源列表,逗号分隔 | 仅本地访问 | 设置 "\*" 可以避免 CORS 跨域错误,按需设置 |
|
|
45
|
+
| `OLLAMA_MODELS` | 模型存放的路径 | "~/.ollama/models" 或 "/usr/share/ollama/.ollama/models" | 按需指定 |
|
|
46
|
+
| `OLLAMA_KEEP_ALIVE` | 模型在显存中保持加载的持续时间 | "5m" | 按需加载和释放显存可以有效降低显卡压力,但会增加硬盘读写 |
|
|
47
|
+
| `OLLAMA_DEBUG` | 设置为 1 以启用额外的调试日志 | 默认关闭 | |
|
|
48
48
|
|
|
49
49
|
### 在 Windows 上设置环境变量
|
|
50
50
|
|
|
@@ -62,10 +62,10 @@ docker run -d -p 3210:3210 -e OLLAMA_PROXY_URL=http://host.docker.internal:11434
|
|
|
62
62
|
|
|
63
63
|
1. 对于每个环境变量,调用 `launchctl setenv`。
|
|
64
64
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
65
|
+
```bash
|
|
66
|
+
launchctl setenv OLLAMA_HOST "0.0.0.0"
|
|
67
|
+
launchctl setenv OLLAMA_ORIGINS "*"
|
|
68
|
+
```
|
|
69
69
|
|
|
70
70
|
2. 重启 Ollama 应用程序。
|
|
71
71
|
|
|
@@ -75,29 +75,28 @@ docker run -d -p 3210:3210 -e OLLAMA_PROXY_URL=http://host.docker.internal:11434
|
|
|
75
75
|
|
|
76
76
|
1. 通过调用`sudo systemctl edit ollama.service`编辑 systemd 服务。
|
|
77
77
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
```bash
|
|
79
|
+
sudo systemctl edit ollama.service
|
|
80
|
+
```
|
|
81
81
|
|
|
82
82
|
2. 对于每个环境变量,在`[Service]`部分下添加`Environment`:
|
|
83
83
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
84
|
+
```bash
|
|
85
|
+
[Service]
|
|
86
|
+
Environment="OLLAMA_HOST=0.0.0.0"
|
|
87
|
+
Environment="OLLAMA_ORIGINS=*"
|
|
88
|
+
```
|
|
89
89
|
|
|
90
90
|
3. 保存并退出。
|
|
91
91
|
4. 重载`systemd`并重启 Ollama:
|
|
92
92
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
93
|
+
```bash
|
|
94
|
+
sudo systemctl daemon-reload
|
|
95
|
+
sudo systemctl restart ollama
|
|
96
|
+
```
|
|
97
97
|
|
|
98
98
|
### 在 Docker 上设置环境变量
|
|
99
99
|
|
|
100
100
|
如果 Ollama 作为 Docker 容器运行,你可以将环境变量添加到 `docker run` 命令中。
|
|
101
101
|
|
|
102
102
|
详细配置方法可以参考 [Ollama 官方文档](https://github.com/ollama/ollama/blob/main/docs/faq.md#how-do-i-configure-ollama-server)。
|
|
103
|
-
|
|
@@ -67,7 +67,6 @@ services:
|
|
|
67
67
|
OPENAI_API_KEY: sk-xxxx
|
|
68
68
|
OPENAI_PROXY_URL: https://api-proxy.com/v1
|
|
69
69
|
ACCESS_CODE: lobe66
|
|
70
|
-
|
|
71
70
|
```
|
|
72
71
|
|
|
73
72
|
运行以下命令启动 Lobe Chat 服务:
|
|
@@ -92,7 +91,7 @@ output=$(docker pull lobehub/lobe-chat:latest 2>&1)
|
|
|
92
91
|
|
|
93
92
|
# Check if the pull command was executed successfully
|
|
94
93
|
if [ $? -ne 0 ]; then
|
|
95
|
-
exit 1
|
|
94
|
+
exit 1
|
|
96
95
|
fi
|
|
97
96
|
|
|
98
97
|
# Check if the output contains a specific string
|
|
@@ -100,7 +99,7 @@ echo "$output" | grep -q "Image is up to date for lobehub/lobe-chat:latest"
|
|
|
100
99
|
|
|
101
100
|
# If the image is already up to date, do nothing
|
|
102
101
|
if [ $? -eq 0 ]; then
|
|
103
|
-
exit 0
|
|
102
|
+
exit 0
|
|
104
103
|
fi
|
|
105
104
|
|
|
106
105
|
echo "Detected Lobe-Chat update"
|
|
@@ -41,6 +41,6 @@ Vercel's assigned domain DNS may be polluted in some regions, so binding a custo
|
|
|
41
41
|
If you have deployed your project using the one-click deployment steps mentioned above, you may find that you are always prompted with "updates available." This is because Vercel creates a new project for you by default instead of forking this project, which causes the inability to accurately detect updates.
|
|
42
42
|
|
|
43
43
|
<Callout>
|
|
44
|
-
We recommend following the [Self-Hosting Upstream Sync](/docs/self-hosting/advanced/upstream-sync)
|
|
45
|
-
Redeploy.
|
|
44
|
+
We recommend following the [Self-Hosting Upstream Sync](/docs/self-hosting/advanced/upstream-sync)
|
|
45
|
+
steps to Redeploy.
|
|
46
46
|
</Callout>
|