Framework

LangChain

Python and JS agent framework. One keyword argument.

Step by step

01
Install
pip install langchain-openai
02
Point it at LuxeChain
base_url + api_key below.
03
Run it
Call invoke with any /models id.
Protocol
OpenAI Chat Completions
Configured in
base_url
Base URL
https://api.luxechain.si/v1

Copy this

langchain
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)
Works with the whole LangChain stack: tools, chains, retrievers.

← All tools Get tokens