Skip to content

Commit

Permalink
Merge pull request #44 from Gyarbij/40-error-after-switching-from-azu…
Browse files Browse the repository at this point in the history
…re-mode-to-openai-mode

refactor: move health check endpoint
  • Loading branch information
Gyarbij authored Jan 24, 2025
2 parents 67980e8 + 3355b1f commit 5664a4b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,6 @@ func init() {
func main() {
router := gin.Default()

// Health check endpoint
router.GET("/healthz", func(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{
"status": "healthy",
})
})

// Proxy routes
if ProxyMode == "azure" {
router.GET("/v1/models", handleGetModels)
Expand Down Expand Up @@ -122,6 +115,13 @@ func main() {
router.Any("*path", handleOpenAIProxy)
}

// Health check endpoint
router.GET("/healthz", func(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{
"status": "healthy",
})
})

router.Run(Address)
}

Expand Down

0 comments on commit 5664a4b

Please sign in to comment.