mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-22 22:21:27 -05:00
[PR #7491] [CLOSED] Update config.py - remove ending slash to avoid 404 error #8864
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/7491
Author: @hi-unc1e
Created: 11/30/2024
Status: ❌ Closed
Base:
dev← Head:main📝 Commits (1)
c8ef02eUpdate config.py - remove ending slash to avoid 404 error📊 Changes
1 file changed (+2 additions, -0 deletions)
View changed files
📝
backend/open_webui/config.py(+2 -0)📄 Description
Pull Request Description
Title: fix: Remove trailing slash from OLLAMA_BASE_URL to prevent 404 errors
Target Branch: dev
Description
This pull request addresses an issue where the trailing slash in the
OLLAMA_BASE_URLconfiguration was causing 404 errors when making HTTP requests. By using Wireshark to capture the HTTP traffic, I identified that the extra slash was the root cause of the problem.The fix involves removing the trailing slash from
OLLAMA_BASE_URLif it exists, which ensures that the URL is correctly formatted and avoids the 404 error.Changelog Entry
OLLAMA_BASE_URLcausing 404 errorsTesting
OLLAMA_BASE_URLand confirmed that the 404 error no longer occurs.Code Review
Documentation
Dependencies
Related Discussion
Thank you for reviewing this pull request. Your feedback is highly appreciated.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.