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

View File

@@ -33,7 +33,11 @@ export const buildBlobContentGetter = (
return;
}
const content = await context?.getFileContent(blobId, chunk);
const [file, blob] = await Promise.all([
context?.getFileContent(blobId, chunk),
context?.getBlobContent(blobId, chunk),
]);
const content = file?.trim() || blob?.trim();
if (!content) {
return;
}