test_litellm_params_not_overwritten_by_function_calling

This commit is contained in:
mc-marcocheng 2023-10-24 22:04:45 +08:00
parent 8dad2eec83
commit 3c28ff6167

View file

@ -108,6 +108,7 @@ def test_function_calling():
### FUNCTION CALLING -> NORMAL COMPLETION
def test_litellm_params_not_overwritten_by_function_calling():
try:
model_list = [
{
"model_name": "gpt-3.5-turbo-0613",
@ -148,3 +149,5 @@ def test_litellm_params_not_overwritten_by_function_calling():
_ = router.completion(model="gpt-3.5-turbo-0613", messages=messages, functions=functions)
response = router.completion(model="gpt-3.5-turbo-0613", messages=messages)
assert response.choices[0].finish_reason != "function_call"
except Exception as e:
pytest.fail(f"Error occurred: {e}")