add another unit test for new model
This commit is contained in:
parent
8e6a9c48f8
commit
43214bbbf8
@ -24,6 +24,11 @@ class TestConvertFrontendStrToLlm(unittest.TestCase):
|
|||||||
Llm.GPT_4_TURBO_2024_04_09,
|
Llm.GPT_4_TURBO_2024_04_09,
|
||||||
"Should convert 'gpt-4-turbo-2024-04-09' to Llm.GPT_4_TURBO_2024_04_09",
|
"Should convert 'gpt-4-turbo-2024-04-09' to Llm.GPT_4_TURBO_2024_04_09",
|
||||||
)
|
)
|
||||||
|
self.assertEqual(
|
||||||
|
convert_frontend_str_to_llm("gpt-4o-2024-05-13"),
|
||||||
|
Llm.GPT_4O_2024_05_13,
|
||||||
|
"Should convert 'gpt-4o-2024-05-13' to Llm.GPT_4O_2024_05_13",
|
||||||
|
)
|
||||||
|
|
||||||
def test_convert_invalid_string_raises_exception(self):
|
def test_convert_invalid_string_raises_exception(self):
|
||||||
with self.assertRaises(ValueError):
|
with self.assertRaises(ValueError):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user