From c48c6e93583effea12d0ea5db717b8c8cc5edc8b Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Sun, 8 Oct 2023 10:00:56 -0700 Subject: [PATCH] docs(set_keys.md): adds validate_environment function to docs --- docs/my-website/docs/set_keys.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/my-website/docs/set_keys.md b/docs/my-website/docs/set_keys.md index c77392aad6..1fc657cf98 100644 --- a/docs/my-website/docs/set_keys.md +++ b/docs/my-website/docs/set_keys.md @@ -148,4 +148,14 @@ assert(valid_models == expected_models) # reset replicate env key os.environ = old_environ +``` + +### `validate_environment(model: str)` + +This helper tells you if you have all the required environment variables for a model, and if not - what's missing. + +```python +import litellm + +print(litellm.validate_environment("openai/gpt-3.5-turbo")) ``` \ No newline at end of file