test_pass_through_moderation_endpoint_factory

This commit is contained in:
Ishaan Jaff 2024-11-27 15:51:47 -08:00
parent 48227c1330
commit 7026f4fdfe

View file

@ -1040,8 +1040,11 @@ def test_pattern_match_deployment_set_model_name(
async def test_pass_through_moderation_endpoint_factory(model_list): async def test_pass_through_moderation_endpoint_factory(model_list):
router = Router(model_list=model_list) router = Router(model_list=model_list)
response = await router._pass_through_moderation_endpoint_factory( response = await router._pass_through_moderation_endpoint_factory(
original_function=litellm.amoderation, input="this is valid good text" original_function=litellm.amoderation,
input="this is valid good text",
model=None,
) )
assert response is not None
@pytest.mark.parametrize( @pytest.mark.parametrize(