Merge branch 'router-for-me:main' into main

This commit is contained in:
Luis Pater
2025-12-08 10:52:39 +08:00
committed by GitHub
7 changed files with 32 additions and 30 deletions
@@ -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 })
}