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;