correct variable shadowing
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
0a4c7c9c99
commit
7660bf7c74
1 changed files with 4 additions and 4 deletions
|
|
@ -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,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue