feat(chat): 新增聊天调用日志与动态配置支持
- 新增 KeyboardUserCallLog 实体及对应 Mapper、Service,用于记录每次聊天请求的模型、token、耗时、错误码等 - ChatController.talk() 在流式输出前后采集元数据,异步落库,支持错误码记录 - AppConfig 新增 QdrantConfig,支持 vectorSearchLimit 动态配置 - QdrantVectorService 改为从 Nacos 动态读取搜索条数,替代硬编码 limit=1 - UserController 登出时先清除用户会话再清除 token,避免并发异常
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package com.yolo.keyborad.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.yolo.keyborad.model.entity.KeyboardUserCallLog;
|
||||
|
||||
/*
|
||||
* @author: ziin
|
||||
* @date: 2025/12/17 13:29
|
||||
*/
|
||||
|
||||
public interface KeyboardUserCallLogMapper extends BaseMapper<KeyboardUserCallLog> {
|
||||
}
|
||||
Reference in New Issue
Block a user