Skip to content

Commit 595619a

Browse files
committed
fix(evaluate): use case-insensitive check for health status
1 parent 4aecacb commit 595619a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/service/tools/evaluate_ragcode.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func (t *EvaluateRagCodeTool) Execute(ctx context.Context, args map[string]inter
7878
health := healthcheck.CheckAllWithModels(t.cfg.LLM.OllamaBaseURL, t.cfg.Storage.VectorDB.URL, models)
7979
for _, h := range health {
8080
statusSymbol := "✅"
81-
if h.Status != "OK" {
81+
if strings.ToLower(h.Status) != "ok" {
8282
statusSymbol = "❌"
8383
}
8484
healthStatus = append(healthStatus, fmt.Sprintf("%s %s: %s", statusSymbol, h.Service, h.Status))

0 commit comments

Comments
 (0)