Skip to content

Commit 37f0380

Browse files
committed
docs(sidebar): update model platform guide and add Dify support
- Add DeepSeek and Dify to the model platform sidebar - Update Dify documentation for better clarity - Remove redundant DeepSeek entry from sidebar
1 parent ac1bfa8 commit 37f0380

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

docs/.vitepress/config.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,10 @@ function sidebarGuide(): DefaultTheme.SidebarItem[] {
182182
text: "OpenAI",
183183
link: "/guide/configure-model-platform/openai",
184184
},
185-
185+
{
186+
text: "DeepSeek",
187+
link: "/guide/configure-model-platform/deepseek",
188+
},
186189
{
187190
text: "Google Gemini",
188191
link: "/guide/configure-model-platform/google-gemini",
@@ -195,6 +198,10 @@ function sidebarGuide(): DefaultTheme.SidebarItem[] {
195198
text: "通义千问",
196199
link: "/guide/configure-model-platform/qwen",
197200
},
201+
{
202+
text: "Dify",
203+
link: "/guide/configure-model-platform/dify",
204+
},
198205
{
199206
text: "智谱(ChatGLM)",
200207
link: "/guide/configure-model-platform/zhipu",
@@ -211,10 +218,7 @@ function sidebarGuide(): DefaultTheme.SidebarItem[] {
211218
text: "混元大模型",
212219
link: "/guide/configure-model-platform/hunyuan",
213220
},
214-
{
215-
text: "DeepSeek",
216-
link: "/guide/configure-model-platform/deepseek",
217-
},
221+
218222
{
219223
text: "Moonshot",
220224
link: "/guide/configure-model-platform/moonshot",

docs/guide/configure-model-platform/dify.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@ Dify 是一款开源的大语言模型(LLM)应用开发平台,旨在通过
77

88
## 提示
99

10-
Dify 的 API 更接近于 LLM 应用层的 API,而不是类似 OpenAI 等平台的 API,且 Dify 自维护了对话上下文。所以 ChatLuna 的 Dify 适配器无法兼容现有的 ChatLuna 生态。
10+
Dify 的 API 更接近于 LLM 应用层的 API,而不是类似 OpenAI 等平台的 API,且 Dify 自维护了对话上下文。由于 ChatLuna 本身就维护了自己的对话上下文,这和 Dify 自维护的对话上下文冲突。所以 ChatLuna 的 Dify 适配器无法兼容现有的 ChatLuna 生态。
1111

12-
包括长期记忆,搜索服务ChatLuna 知识库等都不支持。ChatLuna 本身就维护了自己的对话上下文,这和 Dify 自维护的对话上下文冲突
12+
包括 **ChatLuna 的预设系统****长期记忆****搜索服务****ChatLuna 知识库**等都不支持。请自行使用 Dify 工作流实现上面的功能
1313

14-
ChatLuna 最终选择以兼容的方式来接入 Dify 应用。当用户使用 ChatLuna 时,ChatLuna 会根据不同的房间,创建不同的 Dify 对话,通过 Dify 自带的对话上下文来管理对话。
14+
ChatLuna 最终选择以兼容的方式来接入 Dify 应用。当用户使用 ChatLuna 时,ChatLuna 会根据不同的房间,创建不同的 Dify 对话 ID,通过 Dify 自带的对话 ID 来管理对话。
15+
16+
可以理解为:一个 ChatLuna 房间对应一个 Dify 对话 ID。
1517

1618
但 ChatLuna 在运行 Dify 工作流时也会传入一些变量,包括用户的历史聊天内容,当前的用户名等,这使得你可以自定义更多的工作流内容,在下文我们会介绍。
1719

0 commit comments

Comments
 (0)