This commit is contained in:
Bibo Hao
2024-12-04 23:58:08 +08:00
committed by GitHub
17 changed files with 69 additions and 53 deletions

View File

@@ -7,7 +7,7 @@ import (
"github.com/gin-gonic/gin"
)
func SetRelayRouter(router *gin.Engine) {
func SetRelayRouter(router *gin.RouterGroup) {
router.Use(middleware.CORS())
router.Use(middleware.GzipDecodeMiddleware())
// https://platform.openai.com/docs/api-reference/introduction