mirror of
https://github.com/ollama/ollama.git
synced 2026-04-30 07:57:51 -05:00
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.
This commit is contained in:
@@ -1358,7 +1358,7 @@ func (s *Server) info(w http.ResponseWriter, r *http.Request) {
|
|||||||
// Dummy load to get the backend wired up
|
// Dummy load to get the backend wired up
|
||||||
f, err := os.CreateTemp("", "*.bin")
|
f, err := os.CreateTemp("", "*.bin")
|
||||||
if err != nil {
|
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
|
return
|
||||||
}
|
}
|
||||||
defer f.Close()
|
defer f.Close()
|
||||||
@@ -1368,13 +1368,13 @@ func (s *Server) info(w http.ResponseWriter, r *http.Request) {
|
|||||||
"general.architecture": "llama",
|
"general.architecture": "llama",
|
||||||
"tokenizer.ggml.model": "gpt2",
|
"tokenizer.ggml.model": "gpt2",
|
||||||
}, nil); err != nil {
|
}, 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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
m, err = model.New(f.Name(), ml.BackendParams{NumThreads: runtime.NumCPU(), AllocMemory: false, GPULayers: ml.GPULayersList{{}}})
|
m, err = model.New(f.Name(), ml.BackendParams{NumThreads: runtime.NumCPU(), AllocMemory: false, GPULayers: ml.GPULayersList{{}}})
|
||||||
if err != nil {
|
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
|
return
|
||||||
}
|
}
|
||||||
slog.Debug("dummy model load took", "duration", time.Since(startLoad))
|
slog.Debug("dummy model load took", "duration", time.Since(startLoad))
|
||||||
|
|||||||
Reference in New Issue
Block a user