From 362e8519efdf6ffc16b373bc640847b6761fac54 Mon Sep 17 00:00:00 2001 From: ishaan-jaff Date: Mon, 30 Oct 2023 14:05:09 -0700 Subject: [PATCH] def get_valid_models(): (docs) add docstring for --- litellm/utils.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/litellm/utils.py b/litellm/utils.py index 7a82fd45d2c..6d31094cfbc 100644 --- a/litellm/utils.py +++ b/litellm/utils.py @@ -4204,8 +4204,16 @@ def trim_messages( print("Got exception while token trimming", e) return messages -# this helper reads the .env and returns a list of supported llms for user def get_valid_models(): + """ + Returns a list of valid LLMs based on the set environment variables + + Args: + None + + Returns: + A list of valid LLMs + """ try: # get keys set in .env environ_keys = os.environ.keys()