✨Feat: 引入gin框架
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package handle
|
||||
|
||||
import "agent/agent"
|
||||
|
||||
var files = []string{
|
||||
".\\prompt\\card.txt",
|
||||
".\\prompt\\guodegang.txt",
|
||||
".\\prompt\\mermaid.txt",
|
||||
".\\prompt\\quiz.txt",
|
||||
".\\prompt\\scenario.txt",
|
||||
}
|
||||
|
||||
func handle() {
|
||||
|
||||
for _, file := range files {
|
||||
go func(f string) {
|
||||
|
||||
agent.CallWithAgent(llm, ctx, "文件", f)
|
||||
}(file)
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user