Implement parseMentions

This commit is contained in:
Saoud Rizwan
2024-09-18 18:53:46 -04:00
parent ee8e64eece
commit b7dabb8d9e
4 changed files with 143 additions and 1 deletions

View File

@@ -18,6 +18,17 @@ export async function extractTextFromFile(filePath: string): Promise<string> {
return extractTextFromDOCX(filePath)
case ".ipynb":
return extractTextFromIPYNB(filePath)
case ".jpg":
case ".jpeg":
case ".png":
case ".gif":
case ".webp":
case ".mp4":
case ".mp3":
case ".wav":
case ".avi":
case ".mov":
return "Cannot read media file."
default:
return await fs.readFile(filePath, "utf8")
}