mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
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/20747
Author: @YuriNachos
Created: 1/17/2026
Status: ❌ Closed
Base:
main← Head:fix-opensearch-refresh-keyword-arg📝 Commits (7)
f84aad5fix: handle None value for model capabilities in builtin_tools check0d4898ffix: handle None value for model capabilities in file_context check9772be0fix: handle None value for capabilities in get_model_capability helper3d404fffix: URL-encode OAuth client secrets to handle special characters3079444fix: Decode HTML entities in tool call results before sending to LLMc1ec294fix: Support RedisCluster for task command pub/sub messaging6aaf950fix: Use keyword argument for IndicesClient.refresh() opensearch-py >= 3.0.0📊 Changes
6 files changed (+35 additions, -18 deletions)
View changed files
📝
backend/open_webui/config.py(+6 -6)📝
backend/open_webui/retrieval/vector/dbs/opensearch.py(+3 -3)📝
backend/open_webui/tasks.py(+19 -1)📝
backend/open_webui/utils/middleware.py(+4 -6)📝
backend/open_webui/utils/tools.py(+1 -1)📝
src/lib/utils/index.ts(+2 -1)📄 Description
Summary
Fixes #20649
In opensearch-py >= 3.0.0, the
IndicesClient.refresh()method signaturechanged to only accept keyword-only arguments, causing TypeError when uploading
documents to OpenSearch-backed knowledge bases.
Root Cause
The opensearch-py library changed the
refresh()method signature in version 3.0.0:refresh(index_name)- accepted positional argumentrefresh(index=index_name)- keyword-only argumentError
Changes
backend/open_webui/retrieval/vector/dbs/opensearch.pyself.client.indices.refresh(self._get_index_name(collection_name))self.client.indices.refresh(index=self._get_index_name(collection_name))Test
After this fix, document upload to OpenSearch knowledge bases works correctly
with opensearch-py >= 3.0.0.
Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.