mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-25 05:54:53 +00:00
fix: add base_model param to _supports_factory signature
This commit is contained in:
parent
fef8fa4466
commit
9e47d34bf8
1 changed files with 9 additions and 1 deletions
|
|
@ -2329,13 +2329,21 @@ def _supports_provider_info_factory(
|
|||
return None
|
||||
|
||||
|
||||
def _supports_factory(model: str, custom_llm_provider: Optional[str], key: str) -> bool:
|
||||
def _supports_factory(
|
||||
model: str,
|
||||
custom_llm_provider: Optional[str],
|
||||
key: str,
|
||||
base_model: Optional[str] = None,
|
||||
) -> bool:
|
||||
"""
|
||||
Check if the given model supports function calling and return a boolean value.
|
||||
|
||||
Parameters:
|
||||
model (str): The model name to be checked.
|
||||
custom_llm_provider (Optional[str]): The provider to be checked.
|
||||
base_model (Optional[str]): If set, used as a fallback when the model
|
||||
string itself is not found in the registry (e.g. custom Azure
|
||||
deployment names).
|
||||
|
||||
Returns:
|
||||
bool: True if the model supports function calling, False otherwise.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue