mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-24 07:35:18 +00:00
12 lines
344 B
Python
12 lines
344 B
Python
from langchain_core.messages import AIMessage, HumanMessage
|
|
|
|
from langchain_community.chat_models.octoai import ChatOctoAI
|
|
|
|
|
|
def test_chat_octoai() -> None:
|
|
chat = ChatOctoAI()
|
|
message = HumanMessage(content="Hello")
|
|
response = chat([message])
|
|
assert isinstance(response, AIMessage)
|
|
assert isinstance(response.content, str)
|