diff --git a/tools/llm_crash_test.py b/tools/llm_crash_test.py index 01794f0..9d21866 100644 --- a/tools/llm_crash_test.py +++ b/tools/llm_crash_test.py @@ -45,7 +45,7 @@ MJ_PROMPTS = [ # LLM call # --------------------------------------------------------------------------- -def call_llm(model: str, prompt: str, timeout: int = 60) -> dict: +def call_llm(model: str, prompt: str, timeout: int = 180) -> dict: """Appel Ollama, retourne {tokens, elapsed, error, text}.""" t0 = time.time() body = json.dumps({ @@ -269,8 +269,7 @@ def print_report(results: dict, mode: str): print(sep) # Export JSON - RESULTS_PATH = os.getenv("CRASH_RESULTS_PATH", "/home/ubuntu/fallout-venice/src/config/crash_results.json") - report_path = RESULTS_PATH + report_path = os.getenv("CRASH_RESULTS_PATH", "/home/ubuntu/fallout-venice/src/config/crash_results.json") try: with open(report_path, "w") as f: json.dump({"mode": mode, "results": results,