mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
(docs) add docstring for validate_environment
This commit is contained in:
parent
362e8519ef
commit
c7752be7d3
1 changed files with 11 additions and 0 deletions
|
@ -1926,6 +1926,17 @@ def load_test_model(
|
||||||
}
|
}
|
||||||
|
|
||||||
def validate_environment(model: Optional[str]=None) -> dict:
|
def validate_environment(model: Optional[str]=None) -> dict:
|
||||||
|
"""
|
||||||
|
Checks if the environment variables are valid for the given model.
|
||||||
|
|
||||||
|
Args:
|
||||||
|
model (Optional[str]): The name of the model. Defaults to None.
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
dict: A dictionary containing the following keys:
|
||||||
|
- keys_in_environment (bool): True if all the required keys are present in the environment, False otherwise.
|
||||||
|
- missing_keys (List[str]): A list of missing keys in the environment.
|
||||||
|
"""
|
||||||
keys_in_environment = False
|
keys_in_environment = False
|
||||||
missing_keys: List[str] = []
|
missing_keys: List[str] = []
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue