Add link to unload endpoint in upstream list (#140)

* Add link to open /unload
This commit is contained in:
choyuansu
2025-05-20 08:31:44 -07:00
committed by GitHub
parent c260907415
commit f7e46a359f

View File

@@ -319,7 +319,7 @@ func (pm *ProxyManager) proxyToUpstream(c *gin.Context) {
func (pm *ProxyManager) upstreamIndex(c *gin.Context) { func (pm *ProxyManager) upstreamIndex(c *gin.Context) {
var html strings.Builder var html strings.Builder
html.WriteString("<!doctype HTML>\n<html><body><h1>Available Models</h1><ul>") html.WriteString("<!doctype HTML>\n<html><body><h1>Available Models</h1><a href=\"/unload\">Unload all models</a><ul>")
// Extract keys and sort them // Extract keys and sort them
var modelIDs []string var modelIDs []string