Skip to content

Commit 5422c06

Browse files
Update pkg/ollama/handler.go
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent dbfa21a commit 5422c06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/ollama/handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ func (h *Handler) handleListModels(w http.ResponseWriter, r *http.Request) {
172172
modelsList, err := h.modelManager.GetModels()
173173
if err != nil {
174174
h.log.Errorf("Failed to list models: %v", err)
175-
http.Error(w, fmt.Sprintf("Failed to list models: %v", err), http.StatusInternalServerError)
175+
http.Error(w, "Failed to list models", http.StatusInternalServerError)
176176
return
177177
}
178178

0 commit comments

Comments
 (0)