An integration package connecting OpenRouter API with LangChain, providing a ChatOpenAI-compatible chat model and embeddings. Current version 0.2.3, requires Python >=3.10, <4.0.0. Depends on langchain-core (any version). Release cadence is irregular.
pip install langchain-openrouterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize the ChatOpenAI model via OpenRouter and invoke it
Use `openai_api_key='your-key'` when initializing ChatOpenAI.
Import `ChatOpenAI` from langchain_openrouter; do not use `ChatOpenRouter` in code.
Use `model='openai/gpt-4o-mini'` instead of `model_name='openai/gpt-4o-mini'`.
No dependency data recorded yet.