[PR #18853] [CLOSED] refactor(retrieval): remove duplicate MistralLoader code block #63856

Closed
opened 2026-05-06 08:58:31 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/18853
Author: @fsmw
Created: 11/1/2025
Status: Closed

Base: devHead: fix/17256-duplicate-external-document-loader-entry


📝 Commits (1)

  • 4d50829 refactor(retrieval): remove duplicate MistralLoader code block

📊 Changes

1 file changed (+0 additions, -9 deletions)

View changed files

📝 backend/open_webui/retrieval/loaders/main.py (+0 -9)

📄 Description

Summary

Remove duplicate MistralLoader code block with incorrect conditional logic in document loader main.py.

Issue

Fixes #17256 - Duplicate external document loader entry

Changes Made

  • Removed duplicate MistralLoader block (lines 364-372)
  • Kept the correct MistralLoader implementation
  • Cleaned up incorrect conditional logic

Testing

  • Verified duplicate code block existed
  • Confirmed removal doesn't break functionality
  • Tested document loading with various file types

Additional Information

This refactor removes code duplication and incorrect loader assignment that could cause issues with document processing.

Contributor License Agreement

By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.

💘 Generated with Crush


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/18853 **Author:** [@fsmw](https://github.com/fsmw) **Created:** 11/1/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `fix/17256-duplicate-external-document-loader-entry` --- ### 📝 Commits (1) - [`4d50829`](https://github.com/open-webui/open-webui/commit/4d5082976ebb0486b781e7c9266632856c8d5c6c) refactor(retrieval): remove duplicate MistralLoader code block ### 📊 Changes **1 file changed** (+0 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/retrieval/loaders/main.py` (+0 -9) </details> ### 📄 Description ## Summary Remove duplicate MistralLoader code block with incorrect conditional logic in document loader main.py. ## Issue Fixes #17256 - Duplicate external document loader entry ## Changes Made - [x] Removed duplicate MistralLoader block (lines 364-372) - [x] Kept the correct MistralLoader implementation - [x] Cleaned up incorrect conditional logic ## Testing - [x] Verified duplicate code block existed - [x] Confirmed removal doesn't break functionality - [x] Tested document loading with various file types ## Additional Information This refactor removes code duplication and incorrect loader assignment that could cause issues with document processing. ### Contributor License Agreement By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](https://github.com/open-webui/open-webui/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms. 💘 Generated with Crush --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-06 08:58:31 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#63856