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

This commit is contained in:
Xingyao Wang 2024-10-01 14:55:03 -05:00 committed by GitHub
parent 148d22e1af
commit 53a015f718
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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