[GH-ISSUE #21287] feat: Auto-prepend http:// when protocol is missing in Ollama base URL #58097

Closed
opened 2026-05-05 22:19:31 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @WHFF521 on GitHub (Feb 10, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/21287

Check Existing Issues

  • I have searched for all existing open AND closed issues and discussions for similar requests. I have found none that is comparable to my request.

Verify Feature Scope

  • I have read through and understood the scope definition for feature requests in the Issues section. I believe my feature request meets the definition and belongs in the Issues section instead of the Discussions.

Problem Description

When adding an Ollama endpoint in OpenWebUI, the base URL field requires a fully qualified URL including the protocol (e.g. http://127.0.0.1:11434).

If the user inputs only 127.0.0.1:11434, the connection fails silently or appears invalid, even though this address works correctly once http:// is manually added.

This behavior is technically correct, but it can be confusing for users—especially since many tools (e.g. browsers) automatically assume http:// when the protocol is omitted.

Desired Solution you'd like

If the input does not include a protocol (http:// or https://), OpenWebUI could:

  • Automatically prepend http:// by default
    or
  • Display a clear validation message indicating that a protocol is required

This would reduce friction and avoid confusion for new users configuring local Ollama instances.

Alternatives Considered

No response

Additional Context

Image Image
Originally created by @WHFF521 on GitHub (Feb 10, 2026). Original GitHub issue: https://github.com/open-webui/open-webui/issues/21287 ### Check Existing Issues - [x] I have searched for all existing **open AND closed** issues and discussions for similar requests. I have found none that is comparable to my request. ### Verify Feature Scope - [x] I have read through and understood the scope definition for feature requests in the Issues section. I believe my feature request meets the definition and belongs in the Issues section instead of the Discussions. ### Problem Description When adding an Ollama endpoint in OpenWebUI, the base URL field requires a fully qualified URL including the protocol (e.g. `http://127.0.0.1:11434`). If the user inputs only `127.0.0.1:11434`, the connection fails silently or appears invalid, even though this address works correctly once `http://` is manually added. This behavior is technically correct, but it can be confusing for users—especially since many tools (e.g. browsers) automatically assume `http://` when the protocol is omitted. ### Desired Solution you'd like If the input does not include a protocol (`http://` or `https://`), OpenWebUI could: * Automatically prepend `http://` by default **or** * Display a clear validation message indicating that a protocol is required This would reduce friction and avoid confusion for new users configuring local Ollama instances. ### Alternatives Considered _No response_ ### Additional Context <img width="1123" height="616" alt="Image" src="https://github.com/user-attachments/assets/e1a306da-d1c4-4656-b153-957d0d5fbcb9" /> <img width="1123" height="616" alt="Image" src="https://github.com/user-attachments/assets/508ca054-38c8-4378-aa17-9b0b0035d73d" />
Author
Owner

@Classic298 commented on GitHub (Feb 10, 2026):

heads up: not sure this is wanted because on something as important as the connection not sure open webui should auto correct wrong inputs for the user. Similar discussions were held recently on OpenAI model-typos or model endpoint URLs like the path.

Generally no auto-correction of wrong user input is wanted, but i will leave this one open for tim to decide because http:// seems like a reasonable default.

<!-- gh-comment-id:3875981205 --> @Classic298 commented on GitHub (Feb 10, 2026): heads up: not sure this is wanted because on something as important as the connection not sure open webui should auto correct wrong inputs for the user. Similar discussions were held recently on OpenAI model-typos or model endpoint URLs like the path. Generally no auto-correction of wrong user input is wanted, but i will leave this one open for tim to decide because http:// seems like a reasonable default.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#58097