Repository navigation
Accept 127.1 in local AI provider URLs
#1945
Replies: 1 comment 1 reply
|
This is a real gap in the current check, and the HTTPS error is misleading for On private static func isLoopback(host: String) -> Bool {
["localhost", "127.0.0.1", "::1"].contains(host.lowercased())
}(
A small patch looks right to me. I would not only special-case If you open that PR, I think it would be welcome. |
Uh oh!
There was an error while loading. Please reload this page.
Tinycast’s AI provider URL check accepts
http://127.0.0.1:8000/v1, but changing the host to127.1gives “Remote AI providers require an HTTPS base URL.” I checked this against the validator onmain.127.1is shorthand for the same loopback address, so the HTTPS error is misleading. WHATWG IPv4 parserWould you take a small patch that normalizes
127.1to127.0.0.1before checking the URL? Remote providers would still require HTTPS.All reactions