mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-09-14 02:42:24 +03:00
The #3023 apiKey-value dedup in createProviderConnection() matched purely on provider + apiKey, correct for hosted providers where the key alone is the account identity. Local/self-hosted providers (LM Studio, Ollama, vLLM, llama.cpp, ...) commonly carry an optional/cosmetic API key, so reusing the same placeholder value across two physically distinct servers made the second add silently overwrite the first connection's baseUrl instead of creating a second one. Scope the dedup to also require a matching (trimmed, trailing-slash insensitive) providerSpecificData.baseUrl for local/self-hosted providers only (LOCAL_PROVIDERS catalog); hosted-provider dedup is unchanged.