Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
Report errors on server lookup instead of path lookup failure
Daniel Hiltgen8711d03df7da
diff --git a/llm/server.go b/llm/server.goindex 3cab6f1d2..d7d8dce41 100644--- a/llm/server.go+++ b/llm/server.go@@ -253,6 +253,12 @@ func NewLlamaServer(model string, adapters, projectors []string, opts api.Optionvar finalErr errorfor i := 0; i < len(servers); i++ {dir := availableServers[servers[i]]+ if dir == "" {+ // Shouldn't happen+ finalErr = fmt.Errorf("[%d] server %s not listed in available servers %v", i, servers[i], availableServers)+ slog.Error("sever list inconsistent", "error", finalErr)+ continue+ }// Find an availableServers port, retry on each iterration in case the failure was a port conflict raceport := 0