Files
OmniRoute/tests
diegosouzapw 8e6bddbc7b fix(db): scope local-provider apiKey dedup to base URL for multi-account LM Studio (#12173)
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.
2026-09-10 14:47:00 -03:00
..