improve upload UX: progress bar + client-side size limit

This commit is contained in:
2026-09-09 17:11:26 +08:00
parent 7010da8855
commit ab6bf8b370
2 changed files with 51 additions and 9 deletions
+4 -3
View File
@@ -19,9 +19,10 @@ func writeJSON(w http.ResponseWriter, status int, v any) {
// handleHealthz reports liveness and model readiness (public).
func (s *Server) handleHealthz(w http.ResponseWriter, r *http.Request) {
writeJSON(w, http.StatusOK, map[string]any{
"status": "ok",
"models": s.manager != nil && s.manager.Ready(),
"version": s.modelVersion(),
"status": "ok",
"models": s.manager != nil && s.manager.Ready(),
"version": s.modelVersion(),
"max_upload_bytes": s.cfg.MaxUploadBytes,
})
}