Integrations/LangChain

LangChain

Mainstream app framework — point ChatOpenAI at the platform.

Python

python
from langchain_openai import ChatOpenAI

llm = ChatOpenAI(
    model="YOUR_MODEL_ID",
    api_key="YOUR_API_KEY",
    base_url="https://www.starunion.net/v1",
)

print(llm.invoke("Introduce yourself in one sentence").content)

Notes

  • Embeddings use OpenAIEmbeddings — again, only base_url and api_key change
  • Streaming, tool calling and structured output follow the OpenAI-compatible protocol
  • Model IDs come from the Model Plaza and are case-sensitive

Updated: 2026-08-24