We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e4b579 commit df0a44bCopy full SHA for df0a44b
internal/ai/internal/domain/llm.go
@@ -23,7 +23,7 @@ type LLMRequest struct {
23
prompt string
24
}
25
26
-func (req LLMRequest) Prompt() string {
+func (req *LLMRequest) Prompt() string {
27
if req.prompt == "" {
28
args := slice.Map(req.Input, func(idx int, src string) any {
29
return src
internal/question/internal/web/examine_handler.go
@@ -37,6 +37,7 @@ func NewExamineHandler(svc service.ExamineService) *ExamineHandler {
37
38
func (h *ExamineHandler) MemberRoutes(server *gin.Engine) {
39
g := server.Group("/question/examine")
40
+ // 暂时保留一年,因为后期 AI 的变化难以预测
41
g.POST("", ginx.BS(h.Examine))
42
// 觉得 AI 的评价不准确,那么可以调用这个接口来修正,这是直接暴露给用户使用的
43
g.POST("/correct", ginx.BS[CorrectReq](h.Correct))
0 commit comments