mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-02-03 21:10:51 +08:00
refactor(config): rename prioritize-model-mappings to force-model-mappings
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user