From 55557f7cc80969b8991717e46445e9f141667ef5 Mon Sep 17 00:00:00 2001 From: Danny Avila Date: Sat, 16 Aug 2025 21:00:16 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=80=20chore:=20Resolve=20`primeResourc?= =?UTF-8?q?es`=20Typescript=20Warning?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/api/src/agents/resources.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/api/src/agents/resources.ts b/packages/api/src/agents/resources.ts index 40ed95370e..ac33291d21 100644 --- a/packages/api/src/agents/resources.ts +++ b/packages/api/src/agents/resources.ts @@ -2,7 +2,7 @@ import { logger } from '@librechat/data-schemas'; import { EModelEndpoint, EToolResources, AgentCapabilities } from 'librechat-data-provider'; import type { AgentToolResources, TFile, AgentBaseResource } from 'librechat-data-provider'; import type { FilterQuery, QueryOptions, ProjectionType } from 'mongoose'; -import type { IMongoFile } from '@librechat/data-schemas'; +import type { IMongoFile, IUser } from '@librechat/data-schemas'; import type { Request as ServerRequest } from 'express'; /** @@ -149,7 +149,7 @@ export const primeResources = async ({ tool_resources: _tool_resources, agentId, }: { - req: ServerRequest; + req: ServerRequest & { user?: IUser }; requestFileSet: Set; attachments: Promise> | undefined; tool_resources: AgentToolResources | undefined;