取消统一转发Dify请求,改为由客户端直接发送

This commit is contained in:
pingchuan
2025-07-01 15:54:28 +08:00
parent d4846869eb
commit ce851cc448
13 changed files with 12749 additions and 249 deletions
+7
View File
@@ -7,6 +7,8 @@ import chatInputStyles from "~/styles/components/chat-with-llm/chat-input.css?ur
import chatSidebarStyles from "~/styles/components/chat-with-llm/sidebar.css?url";
import chatThoughtProcessStyles from "~/styles/components/chat-with-llm/thought-process.css?url";
import chatMarkdownStyles from "~/styles/components/chat-with-llm/markdown.css?url";
// 导入测试文件用于调试
import "~/utils/dify-test.client";
export function links() {
return [
@@ -32,6 +34,11 @@ export const meta: MetaFunction = () => {
/**
* 聊天主页面
* 实现单页面应用模式,所有会话切换都在同一页面内完成
*
* 调试说明:
* - 打开浏览器开发者工具的控制台
* - 输入 window.testDify() 可以测试Dify API连接
* - 查看网络选项卡可以监控API请求
*/
export default function ChatWithLLMIndex() {
return (
+5 -5
View File
@@ -1,16 +1,16 @@
import { Outlet } from "react-router-dom";
import {type MetaFunction} from "@remix-run/node";
import { Outlet } from "@remix-run/react";
import { type MetaFunction } from "@remix-run/node";
export const meta: MetaFunction = () => {
return [
{title: "文档列表 - 中国烟草AI合同及卷宗审核系统"},
{name: "documents", content: "文档列表,新增,修改"}
{ title: "文档列表 - 中国烟草AI合同及卷宗审核系统" },
{ name: "documents", content: "文档列表,新增,修改" }
]
}
export const handle = {
breadcrumb: "文档列表"
}
}
/**
* 文档列表路由布局