From c7752be7d3cc1ed7579e8c2bdceafc56f3e7ceb1 Mon Sep 17 00:00:00 2001 From: ishaan-jaff Date: Mon, 30 Oct 2023 14:06:55 -0700 Subject: [PATCH] (docs) add docstring for validate_environment --- litellm/utils.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/litellm/utils.py b/litellm/utils.py index 6d31094cfb..ebf06caff6 100644 --- a/litellm/utils.py +++ b/litellm/utils.py @@ -1926,6 +1926,17 @@ def load_test_model( } 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 missing_keys: List[str] = []