This commit is contained in:
jrussellsmyth 2026-03-01 05:47:51 +00:00
parent 33723ea4ff
commit 0a4c7c9c99
2 changed files with 0 additions and 6 deletions

View file

@ -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")

View file

@ -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
}