增加AI辅助功能 (#1808)

* feature: 增加两个辅助AI,小奇和小淼

* feature:调整AI自动反写部分
This commit is contained in:
PiexlMax(奇淼
2024-07-02 22:53:59 +08:00
committed by GitHub
parent 128e810f77
commit 59cfe96fe3
11 changed files with 288 additions and 52 deletions

View File

@@ -12,8 +12,8 @@ import (
func initServer(address string, router *gin.Engine) server {
s := endless.NewServer(address, router)
s.ReadHeaderTimeout = 20 * time.Second
s.WriteTimeout = 20 * time.Second
s.ReadHeaderTimeout = 10 * time.Minute
s.WriteTimeout = 10 * time.Minute
s.MaxHeaderBytes = 1 << 20
return s
}

View File

@@ -14,8 +14,8 @@ func initServer(address string, router *gin.Engine) server {
return &http.Server{
Addr: address,
Handler: router,
ReadTimeout: 20 * time.Second,
WriteTimeout: 20 * time.Second,
ReadTimeout: 10 * time.Minute,
WriteTimeout: 10 * time.Minute,
MaxHeaderBytes: 1 << 20,
}
}