Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
fix(install.ps1): use ordinal IndexOf when stripping index URL credentials (#7286)
Solaris-star5308c24e70ef
diff --git a/install.ps1 b/install.ps1index 9c99379666a..36e03ca51d4 100644--- a/install.ps1+++ b/install.ps1@@ -2030,16 +2030,18 @@ exit 0# _strip_index_url_credentials (install.sh / py / setup.ps1).function Remove-IndexUrlCredentials {param([string]$Url)- $sep = $Url.IndexOf('://')+ # Ordinal, not culture-aware: on non-English locales (e.g. th-TH) linguistic+ # IndexOf treats "://" as ignorable, mis-locates it, and crashes Substring (issue #7279).+ $sep = $Url.IndexOf('://', [System.StringComparison]::Ordinal)if ($sep -lt 0) { return $Url }$scheme = $Url.Substring(0, $sep)$rest = $Url.Substring($sep + 3)# Drop query / fragment (may hold auth tokens).$q = $rest.IndexOfAny([char[]]('?', '#'))if ($q -ge 0) { $rest = $rest.Substring(0, $q) }- $slash = $rest.IndexOf('/')+ $slash = $rest.IndexOf('/', [System.StringComparison]::Ordinal)$authority = if ($slash -ge 0) { $rest.Substring(0, $slash) } else { $rest }- $at = $authority.LastIndexOf('@')+ $at = $authority.LastIndexOf('@', [System.StringComparison]::Ordinal)$host_ = if ($at -ge 0) { $authority.Substring($at + 1) } else { $authority }if ($slash -ge 0) { return "${scheme}://${host_}$($rest.Substring($slash))" }return "${scheme}://${host_}"