From a6ff94d03022366eb595fdaf38727fd72556a529 Mon Sep 17 00:00:00 2001 From: ItzCrazyKns <95534749+ItzCrazyKns@users.noreply.github.com> Date: Sat, 13 Dec 2025 22:22:41 +0530 Subject: [PATCH] feat(api): update to use fileIds --- src/app/api/chat/route.ts | 2 +- src/app/api/search/route.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/api/chat/route.ts b/src/app/api/chat/route.ts index 2ea0bf5..23104e0 100644 --- a/src/app/api/chat/route.ts +++ b/src/app/api/chat/route.ts @@ -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, }, }); diff --git a/src/app/api/search/route.ts b/src/app/api/search/route.ts index 8f357cb..530a7e7 100644 --- a/src/app/api/search/route.ts +++ b/src/app/api/search/route.ts @@ -57,6 +57,7 @@ export const POST = async (req: Request) => { llm: llm, sources: ['web', 'discussions', 'academic'], mode: 'balanced', + fileIds: [] }, followUp: body.query, });