mirror of
https://github.com/songquanpeng/one-api.git
synced 2026-02-08 23:24:25 +08:00
feat: allow baseUrl
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func SetRelayRouter(router *gin.Engine) {
|
||||
func SetRelayRouter(router *gin.RouterGroup) {
|
||||
router.Use(middleware.CORS())
|
||||
// https://platform.openai.com/docs/api-reference/introduction
|
||||
modelsRouter := router.Group("/v1/models")
|
||||
|
||||
Reference in New Issue
Block a user