diff --git a/server/routes.go b/server/routes.go index f5b05bb5..5dfd6ffe 100644 --- a/server/routes.go +++ b/server/routes.go @@ -507,7 +507,7 @@ func (s *Server) EmbeddingsHandler(c *gin.Context) { embedding, err := r.Embedding(c.Request.Context(), req.Prompt) if err != nil { slog.Info(fmt.Sprintf("embedding generation failed: %v", err)) - c.JSON(http.StatusInternalServerError, gin.H{"error": "failed to generate embedding"}) + c.JSON(http.StatusInternalServerError, gin.H{"error": fmt.Errorf("failed to generate embedding: %v", err)}) return }