test(test_llm_guard.py): fix llm guard integration

This commit is contained in:
Krrish Dholakia 2024-03-21 08:31:11 -07:00
parent 859a2af3ed
commit 7f6a2691bd

View file

@ -54,6 +54,7 @@ async def test_llm_guard_valid_response():
}
]
},
call_type="completion",
)
except Exception as e:
pytest.fail(f"An exception occurred - {str(e)}")
@ -89,6 +90,7 @@ async def test_llm_guard_error_raising():
}
]
},
call_type="completion",
)
pytest.fail(f"Should have failed - {str(e)}")
except Exception as e: