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.
Use LangChain.js with the Halesis API.
npm install @langchain/openai @langchain/core
yarn add @langchain/openai @langchain/core
pnpm add @langchain/openai @langchain/core
bun add @langchain/openai @langchain/core
import { ChatOpenAI } from "@langchain/openai"; const model = new ChatOpenAI({ model: "b1-fast", apiKey: process.env.HALESIS_API_KEY, configuration: { baseURL: "https://api.halesis.com/v1", }, }); const response = await model.invoke("Hello!"); console.log(response.content);
Set up using a coding agent