mirror of
https://github.com/hwchase17/langchain.git
synced 2025-05-11 10:06:05 +00:00
docs: Update import library for StreamlitCallbackHandler (#16401)
- **Description:** Some code sources have been moved from `langchain` to `langchain_community` and so the documentation is not yet up-to-date. This is specifically true for `StreamlitCallbackHandler` which returns a `warning` message if not loaded from `langchain_community`., - **Issue:** I don't see a # issue that could address this problem but perhaps #10744, - **Dependencies:** Since it's a documentation change no dependencies are required
This commit is contained in:
parent
7ecd2f22ac
commit
a1c0cf21c9
@ -46,7 +46,7 @@ thoughts and actions live in your app.
|
|||||||
```python
|
```python
|
||||||
from langchain_openai import OpenAI
|
from langchain_openai import OpenAI
|
||||||
from langchain.agents import AgentType, initialize_agent, load_tools
|
from langchain.agents import AgentType, initialize_agent, load_tools
|
||||||
from langchain.callbacks import StreamlitCallbackHandler
|
from langchain_community.callbacks import StreamlitCallbackHandler
|
||||||
import streamlit as st
|
import streamlit as st
|
||||||
|
|
||||||
llm = OpenAI(temperature=0, streaming=True)
|
llm = OpenAI(temperature=0, streaming=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user