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
}
providerKey := protocol
if providerKey == "" {
providerKey = "openai"
providerKeyStr := protocol
if providerKeyStr == "" {
providerKeyStr = "openai"
}
reg.models[mc.ModelName] = &ModelEntry{
Provider: provider,
ModelID: modelID,
ProviderKey: providerKey,
ProviderKey: providerKeyStr,
}
}