langchain/docs/modules/chains
Steve Kim 613bf9b514
Update getting_started.md (#4482)
# Added another helpful way for developers who want to set OpenAI API
Key dynamically

Previous methods like exporting environment variables are good for
project-wide settings.
But many use cases need to assign API keys dynamically, recently.

```python
from langchain.llms import OpenAI
llm = OpenAI(openai_api_key="OPENAI_API_KEY")
```

## Before submitting
```bash
export OPENAI_API_KEY="..."
```
Or,
```python
import os
os.environ["OPENAI_API_KEY"] = "..."
```

<hr>

Thank you.
Cheers,
Bongsang
2023-05-17 21:32:25 -07:00
..
examples WIP: FLARE-inspired chain (#4612) 2023-05-13 09:28:28 -07:00
generic add embedding router (#4644) 2023-05-13 21:47:01 -07:00
index_examples Update summarize.ipynb (#4529) 2023-05-16 18:14:00 -07:00
getting_started.ipynb Update getting_started.md (#4482) 2023-05-17 21:32:25 -07:00
how_to_guides.rst big docs refactor (#1978) 2023-03-26 19:49:46 -07:00