From f520f0056e099a26ed312a8dddd212a129a6f065 Mon Sep 17 00:00:00 2001 From: Josh Yan Date: Wed, 3 Jul 2024 17:05:22 -0700 Subject: [PATCH] rm config --- server/routes.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/server/routes.go b/server/routes.go index 0011f106d..2ad851edc 100644 --- a/server/routes.go +++ b/server/routes.go @@ -966,7 +966,6 @@ func (s *Server) GenerateRoutes() http.Handler { r.POST("/api/blobs/:digest", s.CreateBlobHandler) r.HEAD("/api/blobs/:digest", s.HeadBlobHandler) r.GET("/api/ps", s.ProcessHandler) - r.GET("/api/config", s.ConfigHandler) // Compatibility endpoints r.POST("/v1/chat/completions", openai.ChatMiddleware(), s.ChatHandler) @@ -1288,7 +1287,3 @@ func handleScheduleError(c *gin.Context, name string, err error) { c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()}) } } - -func (s *Server) ConfigHandler(c *gin.Context) { - c.JSON(http.StatusOK, api.ServerConfig{ModelDir: envconfig.ModelsDir}) -}