improve upload UX: progress bar + client-side size limit
This commit is contained in:
@@ -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,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user