Jddjbddb commited on
Commit
a3a6081
1 Parent(s): c7d42ea

Update initialize/router.go

Browse files
Files changed (1) hide show
  1. initialize/router.go +4 -4
initialize/router.go CHANGED
@@ -26,10 +26,10 @@ func RegisterRouter() *gin.Engine {
26
  })
27
  })
28
 
29
- router.OPTIONS("/v1/chat/completions", optionsHandler)
30
- router.OPTIONS("/v1/chat/models", optionsHandler)
31
  authGroup := router.Group("").Use(middlewares.Authorization)
32
- authGroup.POST("/v1/chat/completions", handler.duckduckgo)
33
- authGroup.GET("/v1/models", handler.engines)
34
  return router
35
  }
 
26
  })
27
  })
28
 
29
+ router.OPTIONS("api/v1/chat/completions", optionsHandler)
30
+ router.OPTIONS("api/v1/chat/models", optionsHandler)
31
  authGroup := router.Group("").Use(middlewares.Authorization)
32
+ authGroup.POST("api/v1/chat/completions", handler.duckduckgo)
33
+ authGroup.GET("api/v1/models", handler.engines)
34
  return router
35
  }