langchain/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
..
api_reference docs: fix api ref mod links in pkg page (#25447) 2024-08-15 16:52:12 +00:00
data 👥 Update LangChain people data (#23697) 2024-07-01 17:42:55 +00:00
docs docs[patch]: Update code that checks API keys (#25444) 2024-08-15 12:52:37 -04:00
scripts docs: fix tool index (#25404) 2024-08-14 18:36:41 +00:00
src [docs]: pdf loaders (#25425) 2024-08-14 21:44:57 -07:00
static docs[patch]: Simplify tool calling guide, improve tool calling conceptual guide (#24637) 2024-07-25 14:39:14 -07:00
.gitignore infra: cleanup docs build (#21134) 2024-05-01 17:34:05 -07:00
.yarnrc.yml docs[minor]: Add thumbs up/down to all docs pages (#18526) 2024-03-04 15:14:28 -08:00
babel.config.js Restructure docs (#11620) 2023-10-10 12:55:19 -07:00
docusaurus.config.js docs: udpated api reference (#25172) 2024-08-14 07:00:17 -07:00
ignore-step.sh infra: docs ignore step in script (#24090) 2024-07-10 15:18:00 -07:00
Makefile docs: udpated api reference (#25172) 2024-08-14 07:00:17 -07:00
package.json [docs]: combine tools and toolkits (#25158) 2024-08-08 08:59:02 -07:00
README.md docs: developer docs (#14776) 2023-12-17 12:55:49 -08:00
sidebars.js docs: remove sidebar comment (#25369) 2024-08-14 01:47:12 +00:00
vercel_build.sh docs: udpated api reference (#25172) 2024-08-14 07:00:17 -07:00
vercel_requirements.txt infra: avoid orjson 3.10.7 in vercel build (#25212) 2024-08-09 02:23:18 +00:00
vercel.json [docs]: standardize tool docstrings (#25351) 2024-08-13 16:10:00 -07:00
yarn.lock docs[patch]: Adds feedback input after thumbs up/down (#23141) 2024-06-18 16:08:22 -07:00

LangChain Documentation

For more information on contributing to our documentation, see the Documentation Contributing Guide