diff options
| author | sangwook <[email protected]> | 2025-07-21 08:16:42 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-20 23:16:42 +0000 |
| commit | 45b764943ae9dd2d5f18ece0aaa13f84eaa4ad5c (patch) | |
| tree | b15eb4b1d6669a95694b69b2a51463a15f8731f7 /packages/core/src/tools | |
| parent | f4d077cc1f523ddfa278c8be09446b6da0a20839 (diff) | |
feat: Make file type detection and binary checks asynchronous (#3286) (#3288)
Diffstat (limited to 'packages/core/src/tools')
| -rw-r--r-- | packages/core/src/tools/read-many-files.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/core/src/tools/read-many-files.ts b/packages/core/src/tools/read-many-files.ts index 7c3be6e3..7ea6c722 100644 --- a/packages/core/src/tools/read-many-files.ts +++ b/packages/core/src/tools/read-many-files.ts @@ -405,7 +405,7 @@ Use this tool when the user's query implies needing the content of several files .relative(this.config.getTargetDir(), filePath) .replace(/\\/g, '/'); - const fileType = detectFileType(filePath); + const fileType = await detectFileType(filePath); if (fileType === 'image' || fileType === 'pdf') { const fileExtension = path.extname(filePath).toLowerCase(); |
