✨Feat: 添加GetAll()添加并行处理

This commit is contained in:
hhs
2026-03-24 22:15:30 +08:00
parent 91fa5a7bf2
commit 2832062aad
2 changed files with 53 additions and 0 deletions
+11
View File
@@ -1,5 +1,7 @@
package main
// this is 注释
import (
handle "agent/handlers"
"agent/middlewares"
@@ -88,6 +90,15 @@ func main() {
"message": message,
})
})
route.GET("/agent/all/:topic", func(c *gin.Context) {
topic := c.Param("topic")
message := handle.GetAll(llm, ctx, topic)
c.JSON(200, gin.H{
"message": message,
})
})
route.Run()
}