File size: 447 Bytes
1c3c423 f976477 1c3c423 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
import axios from 'axios';
async function DeepSeekR1(query) {
const url = 'https://api.blackbox.ai/api/chat';
const data = {
messages: [
{content: query, role: 'user'}
],
model: 'deepseek-ai/DeepSeek-R1',
max_tokens: '1024'
};
const config = {
headers: {
'Content-Type': 'application/json'
}
};
const response = await axios.post(url, data, config);
return response.data;
}
export { DeepSeekR1 }; |