build-small-hackathon/Off-Grid-Field-Repair-Logbook
1
1import sys2from pathlib import Path3 4eval_file = Path("app_kit/eval.py")5content = eval_file.read_text()6 7# Find the build_response call and extract llm_stats8content = content.replace(9 'response_body, _, payload = build_response(',10 'response_body, _, payload = build_response('11)12 13# Actually, I can just inject it right after the loop finishes.14content = content.replace(15 'report = {',16 'report = {\n "model_name": payload.get("llm_stats", {}).get("model_id", "openbmb/MiniCPM-V-4_6-gguf"),'17)18 19eval_file.write_text(content)20 