mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
12 lines
No EOL
290 B
Text
12 lines
No EOL
290 B
Text
```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
|
|
``` |