Skip to content

πŸ™Œ OpenHands: AI-Driven Development

fix: make llm_completions optional to fix `eval_infer.py` (#4148)

Xingyao Wang53a015f71876
diff --git a/evaluation/utils/shared.py b/evaluation/utils/shared.py
index b6562d4d4a..62c3cc0d7e 100644
--- a/evaluation/utils/shared.py
+++ b/evaluation/utils/shared.py
@@ -61,7 +61,7 @@ class EvalOutput(BaseModel):
history: (
list[dict[str, Any]] | list[tuple[dict[str, Any], dict[str, Any]]] | None
) = None
- llm_completions: list[dict[str, Any]]
+ llm_completions: list[dict[str, Any]] | None = None
metrics: dict[str, Any] | None = None
error: str | None = None