mirror of
https://github.com/hwchase17/langchain.git
synced 2025-05-05 15:18:32 +00:00
12 lines
290 B
Plaintext
12 lines
290 B
Plaintext
```python
|
|
from langchain.schema import HumanMessage
|
|
|
|
text = "What would be a good company name for a company that makes colorful socks?"
|
|
messages = [HumanMessage(content=text)]
|
|
|
|
llm.predict_messages(messages)
|
|
# >> Feetful of Fun
|
|
|
|
chat_model.predict_messages(messages)
|
|
# >> Socks O'Color
|
|
``` |