Skip to content

Commit

Permalink
Merge pull request #31 from Gyarbij/dev
Browse files Browse the repository at this point in the history
1.0.4
  • Loading branch information
Gyarbij authored Aug 27, 2024
2 parents 16b2368 + 20f9dda commit fe4b245
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.22.6 AS builder
FROM golang:1.23.0 AS builder
WORKDIR /build
COPY . .
RUN go get github.com/joho/godotenv
Expand Down
9 changes: 9 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,15 @@ 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)
router.OPTIONS("/v1/*path", handleOptions)
Expand Down

0 comments on commit fe4b245

Please sign in to comment.