langchain/docs/modules
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
..
agents Typos (#4851) 2023-05-17 11:52:22 -04:00
callbacks add more color to callbacks docs (#3856) 2023-04-30 19:13:01 -07:00
chains Update getting_started.md (#4482) 2023-05-17 21:32:25 -07:00
indexes Faiss no avx2 (#4895) 2023-05-17 19:18:57 -07:00
memory Zep memory (#4898) 2023-05-17 20:01:01 -07:00
models Fix AzureOpenAI embeddings documentation example. model -> deployment (#4389) 2023-05-17 21:05:53 -07:00
prompts Harrison/prompt constructor methods (#4616) 2023-05-13 09:23:51 -07:00
utils/examples Pass parsed inputs through to tool _run (#4309) 2023-05-08 09:13:05 -07:00
agents.rst Harrison/plan and solve (#4422) 2023-05-09 21:07:56 -07:00
chains.rst
indexes.rst Correct typo in documentation for word 'therefore' (#2529) 2023-04-06 23:20:30 -07:00
memory.rst
models.rst Harrison/standard llm interface (#4615) 2023-05-13 09:05:31 -07:00
paul_graham_essay.txt Fix notebook example (#3142) 2023-04-19 08:55:06 -07:00
prompts.rst Harrison/prompt constructor methods (#4616) 2023-05-13 09:23:51 -07:00
state_of_the_union.txt