Skip to content

Commit 04ccbc1

Browse files
authored
Merge pull request #1375 from tyler-ball/patch-1
Fixing ValidationErrors when using a custom LLM for evaluation
2 parents b070838 + ec68b67 commit 04ccbc1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deepeval/metrics/role_adherence/schema.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
from typing import List, Optional
2-
from pydantic import BaseModel
2+
from pydantic import BaseModel, Field
33

44

55
class OutOfCharacterResponseVerdict(BaseModel):
66
index: int
77
reason: str
8-
actual_output: Optional[str]
8+
actual_output: Optional[str] = Field(default=None)
99

1010

1111
class OutOfCharacterResponseVerdicts(BaseModel):

0 commit comments

Comments
 (0)