feat(search): update types

This commit is contained in:
ItzCrazyKns 2024-09-25 16:54:19 +05:30
parent c52d6ac290
commit ead2d98a9f
1 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ interface embeddingModel {
model: string;
}
interface RequestBody {
interface ChatRequestBody {
focusMode: string;
chatModel?: chatModel;
embeddingModel?: embeddingModel;
@ -34,7 +34,7 @@ interface RequestBody {
router.post('/', async (req, res) => {
try {
const body: RequestBody = req.body;
const body: ChatRequestBody = req.body;
if (!body.focusMode || !body.query) {
return res.status(400).json({ message: 'Missing focus mode or query' });