修复deepseek无法对话的bug
This commit is contained in:
@@ -48,7 +48,9 @@ func NewEnhancerHandler(svc *service.EnhancerService) *EnhancerHandler {
|
||||
// {
|
||||
// "code": 200,
|
||||
// "data": {
|
||||
// "content": "...",
|
||||
// "content": "...", // 第一份成功(兼容)
|
||||
// "contents": ["..."], // 仅成功内容
|
||||
// "results": [{index,ok,content,error,steps}], // 多份时按槽位
|
||||
// "provider": "spark",
|
||||
// "model": "spark-max",
|
||||
// "steps": [...],
|
||||
|
||||
@@ -31,15 +31,17 @@ func NewHistoryHandler() *HistoryHandler {
|
||||
}
|
||||
|
||||
// List 分页查询历史
|
||||
// GET /api/v1/agent/history?page=1&size=20&scene=&status=-1&via_agent=-1&provider=&date_start=0&date_end=0
|
||||
// GET /api/v1/agent/history?page=1&size=20&scene=&status=-1&via_agent=-1&is_archived=-1&is_correct=-1&provider=&date_start=0&date_end=0
|
||||
func (h *HistoryHandler) List(c *gin.Context) {
|
||||
filter := dao.AIGenerationListFilter{
|
||||
Page: queryInt(c, "page", 1),
|
||||
Size: queryInt(c, "size", 20),
|
||||
Scene: c.Query("scene"),
|
||||
Status: queryInt(c, "status", -1),
|
||||
ViaAgent: queryInt(c, "via_agent", -1),
|
||||
Provider: c.Query("provider"),
|
||||
Page: queryInt(c, "page", 1),
|
||||
Size: queryInt(c, "size", 20),
|
||||
Scene: c.Query("scene"),
|
||||
Status: queryInt(c, "status", -1),
|
||||
ViaAgent: queryInt(c, "via_agent", -1),
|
||||
Provider: c.Query("provider"),
|
||||
IsArchived: queryInt(c, "is_archived", -1),
|
||||
IsCorrect: queryInt(c, "is_correct", -1),
|
||||
}
|
||||
filter.DateStart = int64(queryInt(c, "date_start", 0))
|
||||
filter.DateEnd = int64(queryInt(c, "date_end", 0))
|
||||
|
||||
Reference in New Issue
Block a user