feat: support br

This commit is contained in:
CalciumIon
2024-12-04 23:53:02 +08:00
parent 3089af6b08
commit 4c809277aa
4 changed files with 19 additions and 3 deletions

View File

@@ -9,7 +9,7 @@ import (
func SetRelayRouter(router *gin.Engine) {
router.Use(middleware.CORS())
router.Use(middleware.GzipDecodeMiddleware())
router.Use(middleware.DecompressRequestMiddleware())
// https://platform.openai.com/docs/api-reference/introduction
modelsRouter := router.Group("/v1/models")
modelsRouter.Use(middleware.TokenAuth())