correct variable shadowing

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
jrussellsmyth 2026-03-02 20:20:13 -07:00
parent 0a4c7c9c99
commit 7660bf7c74

View file

@ -92,14 +92,14 @@ func NewModelRegistry(cfg *config.Config) (*ModelRegistry, error) {
cache[key] = provider cache[key] = provider
} }
providerKey := protocol providerKeyStr := protocol
if providerKey == "" { if providerKeyStr == "" {
providerKey = "openai" providerKeyStr = "openai"
} }
reg.models[mc.ModelName] = &ModelEntry{ reg.models[mc.ModelName] = &ModelEntry{
Provider: provider, Provider: provider,
ModelID: modelID, ModelID: modelID,
ProviderKey: providerKey, ProviderKey: providerKeyStr,
} }
} }