mirror of
https://github.com/hwchase17/langchain
synced 2024-11-10 01:10:59 +00:00
3f156e0ece
This PR adds ChatOctoAI, a chat model integration for OctoAI.
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)
|