cleanups
This commit is contained in:
parent
33723ea4ff
commit
0a4c7c9c99
2 changed files with 0 additions and 6 deletions
|
|
@ -25,7 +25,6 @@ func (m *mockRegistryProvider) GetDefaultModel() string {
|
|||
}
|
||||
|
||||
// mockModelRegistry creates a ModelRegistry backed by a mockRegistryProvider.
|
||||
// Maps "gpt-4" (the default in testCfg) and "claude-opus" (used in model tests).
|
||||
func mockModelRegistry() *providers.ModelRegistry {
|
||||
p := &mockRegistryProvider{}
|
||||
reg := providers.NewModelRegistryFromProvider(p, "gpt-4")
|
||||
|
|
|
|||
|
|
@ -107,11 +107,6 @@ func NewModelRegistry(cfg *config.Config) (*ModelRegistry, error) {
|
|||
return nil, fmt.Errorf("no valid models in model_list")
|
||||
}
|
||||
|
||||
// Resolve default model name to model ID so the agent gets the right value
|
||||
if entry, ok := reg.models[reg.defaultModelName]; ok {
|
||||
_ = entry // default exists, good
|
||||
}
|
||||
|
||||
return reg, nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue