mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 02:34:29 +00:00
docs(set_keys.md): adds validate_environment function to docs
This commit is contained in:
parent
a833e3f929
commit
c48c6e9358
1 changed files with 10 additions and 0 deletions
|
@ -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"))
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue