Integrations / LangChain
L

LangChain

Framework · Verified setup guide

Python and JS agent framework. One keyword argument.

Setup steps

  1. 1
    Installpip install langchain-openai
  2. 2
    Point it at LuxeChainbase_url + api_key below.
  3. 3
    Run itCall invoke with any /models id.

Configuration example

python
from langchain_openai import ChatOpenAI

llm = ChatOpenAI(
    base_url="https://api.luxechain.si/v1",
    api_key="lxc_live_YOUR_KEY",
    model="YOUR_MODEL_ID",          # any model id from the /models page
)

print(llm.invoke("Hello").content)

Replace YOUR_MODEL_ID with any model from the catalogue. Never paste a real API key into a shared document.

Troubleshooting

Works with the whole LangChain stack: tools, chains, retrievers.

If the tool rejects the endpoint, confirm the base URL exactly matches the value on the right, and that the key is active in your account.