mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-09 22:31:41 +00:00
test(test_completion.py): add testing to make sure tool calling works as expected for 'azure_ai/' route
This commit is contained in:
parent
88e567af2c
commit
f40d47942f
1 changed files with 8 additions and 3 deletions
|
|
@ -741,8 +741,13 @@ def test_completion_claude_3_function_plus_image():
|
|||
|
||||
print(response)
|
||||
|
||||
|
||||
def test_completion_azure_mistral_large_function_calling():
|
||||
@pytest.mark.parametrize(
|
||||
"provider", [
|
||||
"azure",
|
||||
"azure_ai"
|
||||
]
|
||||
)
|
||||
def test_completion_azure_mistral_large_function_calling(provider):
|
||||
"""
|
||||
This primarily tests if the 'Function()' pydantic object correctly handles argument param passed in as a dict vs. string
|
||||
"""
|
||||
|
|
@ -774,7 +779,7 @@ def test_completion_azure_mistral_large_function_calling():
|
|||
}
|
||||
]
|
||||
response = completion(
|
||||
model="azure/mistral-large-latest",
|
||||
model="{}/mistral-large-latest".format(provider),
|
||||
api_base=os.getenv("AZURE_MISTRAL_API_BASE"),
|
||||
api_key=os.getenv("AZURE_MISTRAL_API_KEY"),
|
||||
messages=messages,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue