const axios = require('axios');
async function aikeyboard2026(prompt) {
try {
if (!prompt) throw new Error('Prompt is required.');
const { data } = await axios.post('https://aicompletion.tappa.com/completions/2A5EBAB0-EB8D-4596-BA57-E95F2CDAA883', {
prompt: prompt,
recompose: false
}, {
headers: {
'content-type': 'application/json; charset=UTF-8',
'user-agent': 'okhttp/4.10.0'
}
});
const result = data?.result?.choices?.[0]?.text;
if (!result) throw new Error('No result found.');
return result;
} catch (error) {
throw new Error(error.message);
}
}
aikeyboard2026('hai! apa kabar?').then(console.log);