Browse Source

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

Xingyao Wang 1 year ago
parent
commit
53a015f718
1 changed files with 1 additions and 1 deletions
  1. 1 1
      evaluation/utils/shared.py

+ 1 - 1
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