Skip to content
WRAITHERIXDocsENRU

LangChain

Terminal window
pip install langchain-openai
import os
from langchain_openai import ChatOpenAI
llm = ChatOpenAI(
model="claude-opus-5-5",
base_url="https://api.wraitherix.com/v1",
api_key=os.environ["WRAITHERIX_API_KEY"],
)
print(llm.invoke("Summarise the plot of Hamlet in one line.").content)

Tool calling, structured output (with_structured_output) and streaming work as usual.