feat(server): integrate blob to context (#13491)

This commit is contained in:
DarkSky
2025-08-15 17:35:45 +08:00
committed by GitHub
parent 795bfb2f95
commit e2156ea135
5 changed files with 85 additions and 12 deletions
@@ -208,8 +208,14 @@ export class CopilotController implements BeforeApplicationShutdown {
const context = await this.context.getBySessionId(sessionId);
const contextParams =
Array.isArray(context?.files) && context.files.length > 0
? { contextFiles: context.files }
(Array.isArray(context?.files) && context.files.length > 0) ||
(Array.isArray(context?.blobs) && context.blobs.length > 0)
? {
contextFiles: [
...context.files,
...(await context.getBlobMetadata()),
],
}
: {};
const lastParams = latestMessage
? {