mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
test(test_llm_guard.py): fix llm guard integration
This commit is contained in:
parent
859a2af3ed
commit
7f6a2691bd
1 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue