Node SDK
Point the official OpenAI Node SDK at the Gonka API. The base URL is https://api.proxy.gonka.gg/v1.
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.proxy.gonka.gg/v1",
apiKey: process.env.GONKA_PROXY_KEY,
});
const response = await client.chat.completions.create({
model: "MiniMaxAI/MiniMax-M2.7",
messages: [{ role: "user", content: "Hello!" }],
});Use baseURL (capital URL). base_url is the Python name. See Python SDK and OpenAI SDK.