mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-02-03 04:50:52 +08:00
refactor(config): rename prioritize-model-mappings to force-model-mappings
This commit is contained in:
@@ -242,10 +242,10 @@ func (h *Handler) DeleteProxyURL(c *gin.Context) {
|
||||
h.persist(c)
|
||||
}
|
||||
|
||||
// Prioritize Model Mappings (for Amp CLI)
|
||||
func (h *Handler) GetPrioritizeModelMappings(c *gin.Context) {
|
||||
c.JSON(200, gin.H{"prioritize-model-mappings": h.cfg.AmpCode.PrioritizeModelMappings})
|
||||
// Force Model Mappings (for Amp CLI)
|
||||
func (h *Handler) GetForceModelMappings(c *gin.Context) {
|
||||
c.JSON(200, gin.H{"force-model-mappings": h.cfg.AmpCode.ForceModelMappings})
|
||||
}
|
||||
func (h *Handler) PutPrioritizeModelMappings(c *gin.Context) {
|
||||
h.updateBoolField(c, func(v bool) { h.cfg.AmpCode.PrioritizeModelMappings = v })
|
||||
func (h *Handler) PutForceModelMappings(c *gin.Context) {
|
||||
h.updateBoolField(c, func(v bool) { h.cfg.AmpCode.ForceModelMappings = v })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user