mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
test_litellm_params_not_overwritten_by_function_calling
This commit is contained in:
parent
8dad2eec83
commit
3c28ff6167
1 changed files with 39 additions and 36 deletions
|
@ -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}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue