Skip to content

Commit d2fa6df

Browse files
hefeng6500hntrl
authored andcommitted
fix: update import path for message classes
1 parent 0b5deb4 commit d2fa6df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/oss/langchain/models.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ A list of messages can be provided to a model to represent conversation history.
152152

153153
:::python
154154
```python Conversation history
155-
from langchain.messages import HumanMessage, AIMessage, SystemMessage
155+
from langchain_core.messages import HumanMessage, AIMessage, SystemMessage
156156

157157
conversation = [
158158
SystemMessage("You are a helpful assistant that translates English to French."),

0 commit comments

Comments
 (0)