From 3590fbfa761ad1d97bbd092baec58b0b8022fef4 Mon Sep 17 00:00:00 2001 From: Dhiraj Lochib <83211536+dhirajlochib@users.noreply.github.com> Date: Sun, 1 Feb 2026 02:56:20 +0530 Subject: [PATCH] runner: fix typo 'baackend' -> 'backend' in error messages (#13645) Fix typo in three error messages where 'baackend' was written instead of 'backend' in the /health endpoint handler when initializing the dummy model load. --- runner/ollamarunner/runner.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/runner/ollamarunner/runner.go b/runner/ollamarunner/runner.go index a756cba23..2aa892080 100644 --- a/runner/ollamarunner/runner.go +++ b/runner/ollamarunner/runner.go @@ -1358,7 +1358,7 @@ func (s *Server) info(w http.ResponseWriter, r *http.Request) { // Dummy load to get the backend wired up f, err := os.CreateTemp("", "*.bin") if err != nil { - http.Error(w, fmt.Sprintf("failed to initialize baackend: %v", err), http.StatusInternalServerError) + http.Error(w, fmt.Sprintf("failed to initialize backend: %v", err), http.StatusInternalServerError) return } defer f.Close() @@ -1368,13 +1368,13 @@ func (s *Server) info(w http.ResponseWriter, r *http.Request) { "general.architecture": "llama", "tokenizer.ggml.model": "gpt2", }, nil); err != nil { - http.Error(w, fmt.Sprintf("failed to initialize baackend: %v", err), http.StatusInternalServerError) + http.Error(w, fmt.Sprintf("failed to initialize backend: %v", err), http.StatusInternalServerError) return } m, err = model.New(f.Name(), ml.BackendParams{NumThreads: runtime.NumCPU(), AllocMemory: false, GPULayers: ml.GPULayersList{{}}}) if err != nil { - http.Error(w, fmt.Sprintf("failed to initialize baackend: %v", err), http.StatusInternalServerError) + http.Error(w, fmt.Sprintf("failed to initialize backend: %v", err), http.StatusInternalServerError) return } slog.Debug("dummy model load took", "duration", time.Since(startLoad))