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 }; |