Vercel ai gateway (#7)

* feat: use vercel ai gateway

* chore: update UI
This commit is contained in:
2025-10-11 12:15:30 +02:00
committed by GitHub
parent ff84b75847
commit 7c9635ba83
14 changed files with 2348 additions and 1809 deletions

20
test-request.js Normal file
View File

@@ -0,0 +1,20 @@
require('dotenv').config();
const fetch = require('axios');
async function testAPI() {
try {
const response = await fetch.post('http://localhost:3000/api/shortcut', {
command: 'anthropic',
parameters: {
question: 'What is 42?'
},
apiKey: process.env.USER_KEY
});
console.log('Success:', response.data);
} catch (error) {
console.error('Error:', error.response?.data || error.message);
}
}
testAPI();