Dev2049/callback example fix (#4010)

Closes #3997

---------

Co-authored-by: Akshaj Jain <akshaj.jain@gmail.com>
This commit is contained in:
Davis Chase 2023-05-02 16:20:16 -07:00 committed by GitHub
parent f08a76250f
commit df3bc707fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -88,7 +88,7 @@
}, },
"outputs": [], "outputs": [],
"source": [ "source": [
"from langchain.callbacks.base import CallbackManager\n", "from langchain.callbacks.manager import CallbackManager\n",
"from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler" "from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler"
] ]
}, },
@ -171,7 +171,7 @@
"name": "python", "name": "python",
"nbconvert_exporter": "python", "nbconvert_exporter": "python",
"pygments_lexer": "ipython3", "pygments_lexer": "ipython3",
"version": "3.9.1" "version": "3.11.3"
} }
}, },
"nbformat": 4, "nbformat": 4,

View File

@ -42,7 +42,7 @@
"source": [ "source": [
"from langchain.llms import LlamaCpp\n", "from langchain.llms import LlamaCpp\n",
"from langchain import PromptTemplate, LLMChain\n", "from langchain import PromptTemplate, LLMChain\n",
"from langchain.callbacks.base import CallbackManager\n", "from langchain.callbacks.manager import CallbackManager\n",
"from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler" "from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler"
] ]
}, },
@ -134,7 +134,7 @@
"name": "python", "name": "python",
"nbconvert_exporter": "python", "nbconvert_exporter": "python",
"pygments_lexer": "ipython3", "pygments_lexer": "ipython3",
"version": "3.10.6" "version": "3.11.3"
} }
}, },
"nbformat": 4, "nbformat": 4,