feat(controller): 新增 CopilotKit 控制器并重构数据访问逻辑

- 添加 CopilotKitController 实现 SSE 流式响应
- 重构 SysEntityController 和 DynamicDataController 移除 creatorId 过滤
- 新增 AgentResponse 和 Result 统一响应结构
- 扩展 CrmAgent 支持同步和流式聊天接口
- 更新 application.yml 添加 streaming-chat-model 配置
- 完善 CrmTools 工具类增加更新和查询功能
This commit is contained in:
2026-03-25 20:36:10 +08:00
parent 1270461490
commit 80662a06f0
11 changed files with 331 additions and 29 deletions
+6
View File
@@ -23,6 +23,12 @@ langchain4j:
model-name: glm-4-plus
log-requests: true
log-responses: true
streaming-chat-model:
api-key: ${ZHIPU_API_KEY:61833436cbd642ed844d0128a99b2e89.PTbpERpysO3qSf8w}
base-url: https://open.bigmodel.cn/api/paas/v4/
model-name: glm-4-plus
log-requests: true
log-responses: true
server:
port: 8080