...on" in t or "not valid json" in t or "invalid json" in t:
        return "MODEL_OUTPUT_NOT_JSON"

    return "UNKNOWN"

def extract_key_lines(text: str) -> list[str]:
    # Zeige die Zeilen, die fast immer aussagekräftig sind
    lines = text.splitlines()
    keep = []
    for ln in lines:
        l = ln.strip()
        if not l:
            continue
        if "jsondecodeerror" in l.lower():
         ...