mirror of
https://github.com/hwchase17/langchain
synced 2024-11-06 03:20:49 +00:00
Dev2049/callback example fix (#4010)
Closes #3997 --------- Co-authored-by: Akshaj Jain <akshaj.jain@gmail.com>
This commit is contained in:
parent
f08a76250f
commit
df3bc707fc
@ -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,
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user