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
|
||||
}
|
||||
|
||||
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,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue