From 938be81c45c2b38974b1a45ed51a4fe404451088 Mon Sep 17 00:00:00 2001 From: Bruce MacDonald Date: Fri, 10 May 2024 10:15:22 -0700 Subject: [PATCH] Add TODO --- server/routes.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/server/routes.go b/server/routes.go index 938330c8a..bbdd0b1b6 100644 --- a/server/routes.go +++ b/server/routes.go @@ -437,10 +437,11 @@ func (s *Server) TokenizeHandler(c *gin.Context) { opts, err := modelOptions(model, req.Options) if err != nil { - if errors.Is(err, api.ErrInvalidOpts) { - c.JSON(http.StatusBadRequest, gin.H{"error": err.Error()}) - return - } + // TODO: handle specific errors + // if errors.Is(err, api.ErrInvalidOpts) { + // c.JSON(http.StatusBadRequest, gin.H{"error": err.Error()}) + // return + // } c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()}) return }