Merge remote-tracking branch 'github_public/main'

This commit is contained in:
wizardchen
2025-11-20 15:49:43 +08:00
51 changed files with 3293 additions and 1922 deletions
+1 -1
View File
@@ -1594,7 +1594,7 @@ func (s *knowledgeService) UpdateManualKnowledge(ctx context.Context,
// isValidFileType checks if a file type is supported
func isValidFileType(filename string) bool {
switch strings.ToLower(getFileType(filename)) {
case "pdf", "txt", "docx", "doc", "md", "markdown", "png", "jpg", "jpeg", "gif":
case "pdf", "txt", "docx", "doc", "md", "markdown", "png", "jpg", "jpeg", "gif", "csv", "xlsx", "xls":
return true
default:
return false