mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[PR #22704] [CLOSED] fix: resolve UnboundLocalError for limit in oracle23ai.py get() #26823
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/22704
Author: @mvanhorn
Created: 3/15/2026
Status: ❌ Closed
Base:
dev← Head:osc/22664-oracle23ai-unbound-limit-v2📝 Commits (1)
e1312a6fix: resolve UnboundLocalError for limit in oracle23ai.py get()📊 Changes
1 file changed (+3 additions, -4 deletions)
View changed files
📝
backend/open_webui/retrieval/vector/dbs/oracle23ai.py(+3 -4)📄 Description
Summary
Moves the
limit = 1000assignment before thelog.info()call that references it in theget()method oforacle23ai.py.Changes
The
get()method signature isdef get(self, collection_name: str)with nolimitparameter. Thelog.info()at line 714 referencedlimitbefore it was assigned at line 718, causing anUnboundLocalErrorwhen Oracle 23ai hybrid search was activated.Testing
limitparameterlimitis assignedFixes #22664
Closes #22616
This contribution was developed with AI assistance (Claude Code).
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.