Spaces:
Sleeping
Sleeping
Update initialize/router.go
Browse files- 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 |
}
|