const client = new GatelitClient({
gatewayUrl: "https://gateway.yourapp.com",
getToken: async () => ({ token: "sk_live_...", scheme: "GatelitKey" }),
})
const conv = client.conversation({ model: "openai/gpt-4o" })
const r1 = await conv.send("What is the capital of France?")
console.log(r1.content)
// → "The capital of France is Paris."
const r2 = await conv.send("What is its population?")
console.log(r2.content)
// → "Paris has a population of about 2.1 million..."
// The full history is sent automatically on every turn
console.log(conv.messages)
// [
// { role: "user", content: "What is the capital of France?" },
// { role: "assistant", content: "The capital of France is Paris." },
// { role: "user", content: "What is its population?" },
// { role: "assistant", content: "Paris has a population..." },
// ]