import { GatelitClient } from "@gatelit/sdk"
const client = new GatelitClient({
gatewayUrl: "https://gateway.yourapp.com",
getToken: async () => ({ token: "sk_live_...", scheme: "GatelitKey" }),
})
const response = await client.chat({
model: "openai/gpt-4o",
messages: [
{ role: "system", content: "You are a helpful assistant." },
{ role: "user", content: "What is the capital of Bhutan?" },
],
})
console.log(response.content)
// → "The capital of Bhutan is Thimphu."
console.log(response.usage)
// → { inputTokens: 28, outputTokens: 9, totalTokens: 37 }