import { Mesh } from '@meshrouter/sdk';
const mesh = new Mesh({ apiKey: process.env.MESH_API_KEY! });
const reply = await mesh.ai.chat({
model: 'auto',
messages: [{ role: 'user', content: 'route this privately' }],
maxOutputTokens: 200,
});
console.log(reply.content);
console.log('receipt:', reply.receiptId, '$' + reply.actualCustomerChargeUsd);