feat(api): update to use fileIds

This commit is contained in:
ItzCrazyKns
2025-12-13 22:22:41 +05:30
parent 748ee4d3c2
commit a6ff94d030
2 changed files with 2 additions and 1 deletions

View File

@@ -1,4 +1,3 @@
import crypto from 'crypto';
import { z } from 'zod';
import ModelRegistry from '@/lib/models/registry';
import { ModelWithProvider } from '@/lib/models/types';
@@ -206,6 +205,7 @@ export const POST = async (req: Request) => {
embedding: embedding,
sources: ['web'],
mode: body.optimizationMode,
fileIds: body.files,
},
});

View File

@@ -57,6 +57,7 @@ export const POST = async (req: Request) => {
llm: llm,
sources: ['web', 'discussions', 'academic'],
mode: 'balanced',
fileIds: []
},
followUp: body.query,
});