We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 67980e8 + 3355b1f commit 5664a4bCopy full SHA for 5664a4b
main.go
@@ -80,13 +80,6 @@ func init() {
80
func main() {
81
router := gin.Default()
82
83
- // Health check endpoint
84
- router.GET("/healthz", func(c *gin.Context) {
85
- c.JSON(http.StatusOK, gin.H{
86
- "status": "healthy",
87
- })
88
89
-
90
// Proxy routes
91
if ProxyMode == "azure" {
92
router.GET("/v1/models", handleGetModels)
@@ -122,6 +115,13 @@ func main() {
122
115
router.Any("*path", handleOpenAIProxy)
123
116
}
124
117
118
+ // Health check endpoint
119
+ router.GET("/healthz", func(c *gin.Context) {
120
+ c.JSON(http.StatusOK, gin.H{
121
+ "status": "healthy",
+ })
+
125
router.Run(Address)
126
127
0 commit comments