mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-17 08:21:12 -05:00
[PR #11432] [CLOSED] fix: opensearch environment variables fix #93772
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/11432
Author: @captn-hook
Created: 3/8/2025
Status: ❌ Closed
Base:
dev← Head:patch-1📝 Commits (6)
dc78d2fUpdate bug_report.yaml67cd4f2Create config.yamld7bfa39refacb03fc97Update bug_report.yaml35cc6efUpdate config.py to correctly handle environment stringsdfb1ec9required for compile📊 Changes
4 files changed (+9 additions, -6 deletions)
View changed files
📝
.github/ISSUE_TEMPLATE/bug_report.yaml(+5 -3)➕
.github/ISSUE_TEMPLATE/config.yml(+1 -0)📝
backend/open_webui/config.py(+2 -2)📝
package.json(+1 -1)📄 Description
Pull Request Checklist
https://github.com/open-webui/open-webui/discussions/11431
Changelog Entry
as per this thread in the discord
https://discord.com/channels/1170866489302188073/1347727886001635338
opensearch environment variables are loaded as strings instead of bools,
modified according to other examples in the file backend/open_webui/config.py
in backend/open_webui/retrieval/vector/dbs/opensearch.py,
class OpenSearchClient:
def init(self):
self.index_prefix = "open_webui"
self.client = OpenSearch(
hosts=[OPENSEARCH_URI],
use_ssl=OPENSEARCH_SSL,
verify_certs=OPENSEARCH_CERT_VERIFY,
http_auth=(OPENSEARCH_USERNAME, OPENSEARCH_PASSWORD),
)
But this is a Python bool, not a string.
In backend/open_webui/config.py, we define it here:
OPENSEARCH_SSL = os.environ.get("OPENSEARCH_SSL", True)
other variables are loaded like
OPENSEARCH_SSL = os.environ.get("OPENSEARCH_SSL", "true").lower() == "true"
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.