feat: 添加AI问题生成功能,支持配置生成数量并在前端展示生成的问题

This commit is contained in:
wizardchen
2025-12-03 01:42:31 +08:00
parent 12497a2fea
commit 16562eebbb
21 changed files with 987 additions and 296 deletions
+6
View File
@@ -67,6 +67,12 @@ func RunAsynqServer(params AsynqTaskParams) *asynq.ServeMux {
// Register FAQ import handler
mux.HandleFunc(types.TypeFAQImport, params.KnowledgeService.ProcessFAQImport)
// Register question generation handler
mux.HandleFunc(types.TypeQuestionGeneration, params.KnowledgeService.ProcessQuestionGeneration)
// Register summary generation handler
mux.HandleFunc(types.TypeSummaryGeneration, params.KnowledgeService.ProcessSummaryGeneration)
go func() {
// Start the server
if err := params.Server.Run(mux); err != nil {