refactor(config): rename prioritize-model-mappings to force-model-mappings

This commit is contained in:
hkfires
2025-12-08 10:44:39 +08:00
parent 42e818ce05
commit 56ed0d8d90
7 changed files with 32 additions and 30 deletions

View File

@@ -100,14 +100,14 @@ func (m *AmpModule) Name() string {
return "amp-routing"
}
// getPrioritizeModelMappings returns whether model mappings should take precedence over local API keys
func (m *AmpModule) getPrioritizeModelMappings() bool {
// forceModelMappings returns whether model mappings should take precedence over local API keys
func (m *AmpModule) forceModelMappings() bool {
m.configMu.RLock()
defer m.configMu.RUnlock()
if m.lastConfig == nil {
return false
}
return m.lastConfig.PrioritizeModelMappings
return m.lastConfig.ForceModelMappings
}
// Register sets up Amp routes if configured.