fix: crash test timeout 180s, indent fix, Ollama via host.docker.internal + iptables
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user