Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
base_url
import os from langchain_openai import ChatOpenAI from langchain_core.messages import HumanMessage llm = ChatOpenAI( model="gpt-4.1", api_key=os.environ.get("LLMGRID_API_KEY"), base_url="https://api.llmgrid.ai/v1", temperature=0.2, ) resp = llm.invoke([HumanMessage(content="Hello from LangChain via LLMGrid")]) print(resp.content)