Add coveralls (#203)

This commit is contained in:
Jason Liu
2023-11-19 21:36:04 -05:00
committed by GitHub
parent 5d04684792
commit 2d06f5a46b
10 changed files with 412 additions and 268 deletions
+4 -3
View File
@@ -43,15 +43,16 @@ After validation with `llm_validator`
"""
class QuestionAnswerNoEvil(BaseModel):
question: str
answer: Annotated[
str,
BeforeValidator(llm_validator("don't say objectionable things", openai_client=client))
BeforeValidator(
llm_validator("don't say objectionable things", openai_client=client)
),
]
try:
qa = QuestionAnswerNoEvil(
question="What is the meaning of life?",