import Inception from 'inceptionai';
const client = new Inception(); // reads INCEPTION_API_KEY from the environment
const SYSTEM_PROMPT = [
'You are speaking in a voice interface. Follow these rules strictly:',
'1. NEVER use markdown, asterisks, bold, bullet points, numbered lists, or headers.',
'2. Keep every response as short as possible.',
'3. If a tool requires missing information, ask for ONE thing at a time.',
].join('\n');
const completion = await client.chat.completions.create({
model: 'mercury-2',
messages: [
{ role: 'system', content: SYSTEM_PROMPT },
{ role: 'user', content: "Hey, what's up?" },
],
reasoning_effort: 'medium',
temperature: 0.75,
max_tokens: 8192,
realtime: true,
});
console.log(completion.choices[0]?.message.content);