Fill in the npm and pip package names for LangChain's OpenAI provider integration
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
LangChain ships provider integrations as separate packages: `@langchain/openai` on npm, `langchain-openai` on pip; one prefix per ecosystem, the vendor name is the suffix.
Think of the way a phone comes with a charging cable in the box but the cable for the next phone you buy lives in a different box. Old LangChain shipped every vendor's cable inside one giant box; you got a working OpenAI cable and 30 cables you would never plug in, plus the weight of all of them. New LangChain ships the core box (the phone) and you grab only the cables you actually need. The npm world labels its cable boxes with an organisation prefix and a slash; the pip world labels its boxes with a hyphen. Same idea, two stickers.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
4 min: the three-layer split + per-provider package shape + npm vs pip conventions + version-skew traps + JS/Python parity + langchain-community tier.
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Installing the umbrella `langchain` package and importing `ChatOpenAI` from it. That works through a re-export but pulls extra weight; modern code imports from the provider-specific package directly.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.