refactor(prompt): 重构提示词构建服务与数据模型

This commit is contained in:
2026-05-20 11:36:39 +08:00
parent c49144794d
commit 35bc3bd6ec
24 changed files with 1682 additions and 759 deletions

View File

@@ -4,7 +4,7 @@ import (
"context"
"os"
"os/signal"
"prompts-core/controller/prompt"
"prompts-core/controller"
"syscall"
"gitea.com/red-future/common/http"
@@ -21,8 +21,8 @@ func main() {
defer jaeger.ShutDown(ctx)
// 注册路由
http.RouteRegister([]interface{}{
prompt.Prompt,
prompt.Session,
controller.Prompt,
controller.Session,
})
// 监听退出信号,确保 Ctrl+C 能完整退出并关闭 gateway server