Commit Graph

6 Commits

Author SHA1 Message Date
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