langchain/docs/docs
Eugene Yurtsev b7c070d437
docs[patch]: Update code that checks API keys (#25444)
Check whether the API key is already in the environment

Update:

```python
import getpass
import os

os.environ["DATABRICKS_HOST"] = "https://your-workspace.cloud.databricks.com"
os.environ["DATABRICKS_TOKEN"] = getpass.getpass("Enter your Databricks access token: ")
```

To:

```python
import getpass
import os

os.environ["DATABRICKS_HOST"] = "https://your-workspace.cloud.databricks.com"
if "DATABRICKS_TOKEN" not in os.environ:
    os.environ["DATABRICKS_TOKEN"] = getpass.getpass(
        "Enter your Databricks access token: "
    )
```

grit migration:

```
engine marzano(0.1)
language python

`os.environ[$Q] = getpass.getpass("$X")` as $CHECK where {
    $CHECK <: ! within if_statement(),
    $CHECK => `if $Q not in os.environ:\n    $CHECK`
}
```
2024-08-15 12:52:37 -04:00
..
_templates
additional_resources docs: Add some 3rd party tutorials (#22931) 2024-06-17 20:12:49 +00:00
changes/changelog
contributing docs[patch]: Add structural example to style guide (#24133) 2024-07-11 13:20:14 -07:00
example_data
how_to [docs]: pdf loaders (#25425) 2024-08-14 21:44:57 -07:00
integrations docs[patch]: Update code that checks API keys (#25444) 2024-08-15 12:52:37 -04:00
tutorials docs: udpated api reference (#25172) 2024-08-14 07:00:17 -07:00
versions langchain[patch]: deprecate various chains (#25310) 2024-08-15 10:49:26 -04:00
.gitignore
concepts.mdx docs: fmt concepts (#24999) 2024-08-02 20:35:45 +00:00
introduction.mdx docs[patch]: Update intro diagram (#24290) 2024-07-15 22:04:42 -07:00
people.mdx
security.md