Use int for year in test case

This commit is contained in:
Neil Mehta 2025-03-24 17:57:48 -04:00 committed by Matt Clayton
parent 00affd1f02
commit 357d7ea9ea
2 changed files with 4 additions and 4 deletions

View file

@ -199,8 +199,8 @@ def test_text_completion_structured_output(client_with_models, text_model_id, te
class AnswerFormat(BaseModel): class AnswerFormat(BaseModel):
name: str name: str
year_born: str year_born: int
year_retired: str year_retired: int
tc = TestCase(test_case) tc = TestCase(test_case)

View file

@ -40,8 +40,8 @@
"user_input": "Michael Jordan was born in 1963. He played basketball for the Chicago Bulls. He retired in 2003.", "user_input": "Michael Jordan was born in 1963. He played basketball for the Chicago Bulls. He retired in 2003.",
"expected": { "expected": {
"name": "Michael Jordan", "name": "Michael Jordan",
"year_born": "1963", "year_born": 1963,
"year_retired": "2003" "year_retired": 2003
} }
} }
}, },