add toggle to hide/show unlisted models (#187)

This commit is contained in:
Benson Wong
2025-07-02 16:14:20 -07:00
committed by GitHub
parent 6a058e4191
commit 78b2bc3dbc
3 changed files with 24 additions and 12 deletions

View File

@@ -15,6 +15,7 @@ type Model struct {
Name string `json:"name"`
Description string `json:"description"`
State string `json:"state"`
Unlisted bool `json:"unlisted"`
}
func addApiHandlers(pm *ProxyManager) {
@@ -72,6 +73,7 @@ func (pm *ProxyManager) getModelStatus() []Model {
Name: pm.config.Models[modelID].Name,
Description: pm.config.Models[modelID].Description,
State: state,
Unlisted: pm.config.Models[modelID].Unlisted,
})
}