Documentation
LangChain in the NexoRouter documentation.
LangChain
Status: Candidate setup, not yet verified by NexoRouter.
LangChain can call OpenAI-compatible chat endpoints by setting a custom base URL.
Python example
from langchain_openai import ChatOpenAI
model = ChatOpenAI(
api_key=os.environ["NEXOROUTER_API_KEY"],
base_url="https://api.nexorouter.com/v1",
model="deepseek-v4-flash",
)
print(model.invoke("Write one short production checklist.").content)
Verify
Run a single chat call first. Check Usage Logs before adding chains, tools, retrievers, or agents.
Boundaries
- Vector stores require embeddings, which are not documented as stable yet.
- Tool and agent behavior depends on model tool calling.
- Keep model IDs configurable.