mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 06:03:26 -05:00
[PR #17769] [MERGED] Fix: milvus error because the limit set to None by default #47588
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/17769
Author: @Classic298
Created: 9/26/2025
Status: ✅ Merged
Merged: 9/26/2025
Merged by: @tjbck
Base:
dev← Head:fix-milvus-limit-error📝 Commits (3)
598282cMerge pull request #17747 from open-webui/deve7ccaf6Fix: milvus error because the limit set to None by defaultb550d78Merge branch 'open-webui:main' into fix-milvus-limit-error📊 Changes
1 file changed (+3 additions, -3 deletions)
View changed files
📝
backend/open_webui/retrieval/vector/dbs/milvus.py(+3 -3)📄 Description
The pymilvus library expects -1 for unlimited queries, but the code was passing None, which caused a TypeError. This commit changes the default value of the limit parameter in the query method from None to -1. It also updates the call site in the get method to pass -1 instead of None and updates the type hint and a comment to reflect this change.
Related: https://github.com/open-webui/open-webui/issues/17088
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.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.