✨Feat: 添加GetAll()添加并行处理
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user