Commit Graph

8 Commits

Author SHA1 Message Date
TanWenyan 5cff5f2a5d 添加对话记录保存详细日志,诊断conversation_id传递问题
添加日志位置:
1. chat/index.tsx: 发送消息、接收会话ID变更、初始化读取localStorage
2. use-chat-message.ts: 发送消息、接收新会话ID、处理新会话
3. use-conversation.ts: setCurrConversationId保存到localStorage

帮助诊断为什么对话记录没有固定(每次都创建新会话)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-30 15:06:24 +08:00
TanWenyan 78e218b953 添加返回数据日志,查看API响应内容
添加日志:
1. 打印fetchConversations返回的完整数据
2. 打印fetchAppParams返回的完整数据
3. 打印chat组件接收到的数据
4. 打印解析后的conversations数组

帮助诊断数据格式问题

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-30 14:55:46 +08:00
TanWenyan 215ecff41d 修复:恢复CHAT_CONFIG.APP_ID和API_KEY字段,解决"应用配置不正确"错误
问题:移除APP_ID和API_KEY后,chat/index.tsx第125行检查失败,
导致显示"应用暂时不可用,应用配置不正确"

修改:
1. app/config/chat.ts
   - 添加 APP_ID = 'docreview-chat' (用于localStorage key)
   - 添加 API_KEY = '' (空值,保持兼容性)
   - 说明:API_KEY不再用于直接调用Dify,服务端通过JWT处理

2. app/components/chat/index.tsx
   - 修改hasSetAppConfig检查:从检查APP_ID和API_KEY改为只检查API_URL
   - 说明:客户端现在通过Remix API routes调用,不需要验证API_KEY

调用流程保持不变:
客户端 → /api/* → JWT验证 → FastAPI /dify → Dify

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-30 14:39:52 +08:00
PingChuan 582aa8fa4d 修复聊天页面渲染逻辑 2025-06-06 16:34:50 +08:00
pingchuan ab960f6dd0 移除聊天组件中的调试日志 2025-06-06 15:31:36 +08:00
pingchuan 1b79f973da 更新AI聊天页面样式 2025-06-06 15:07:57 +08:00
LiangShiyong 8fbf915656 添加新的骨架屏,将评查点列表和评查文件列表,文档列表进行数据分类 2025-06-04 17:31:10 +08:00
pingchuan af33de09db 基于 shiy-temp分支修改 2025-06-04 11:18:52 +08:00