remove redundant error check

This commit is contained in:
Roy Han 2024-07-12 16:37:29 -07:00
parent 1f3aefd323
commit 7e313e5964

View File

@ -326,10 +326,6 @@ func (s *Server) EmbedHandler(c *gin.Context) {
}
}
if err != nil {
c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()})
return
}
reqEmbedArray[i] = s
}
embeddings, err := r.Embed(c.Request.Context(), reqEmbedArray)