Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
Sort the ps output
Daniel Hiltgen642cee13426c
diff --git a/server/routes.go b/server/routes.goindex 3d112e9f1..a7f72edc2 100644--- a/server/routes.go+++ b/server/routes.go@@ -1224,6 +1224,11 @@ func (s *Server) ProcessHandler(c *gin.Context) {models = append(models, mr)}+ slices.SortStableFunc(models, func(i, j api.ProcessModelResponse) int {+ // longest duration remaining listed first+ return cmp.Compare(j.ExpiresAt.Unix(), i.ExpiresAt.Unix())+ })+c.JSON(http.StatusOK, api.ProcessResponse{Models: models})}