mirror of
https://github.com/hwchase17/langchain
synced 2024-11-08 07:10:35 +00:00
33fd6184ba
Co-authored-by: Bagatur <baskaryan@gmail.com>
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
|
|
``` |