Update pkg/inference/models/manager.go

Signed-off-by: Emily Casey <emily.casey@docker.com>

Co-authored-by: Jacob Howard <jacob.howard@docker.com>
This commit is contained in:
Emily Casey 2025-04-17 19:51:11 -04:00 committed by Emily Casey
parent 3a7a483d68
commit cac9d9dd8b
1 changed files with 1 additions and 1 deletions

View File

@ -462,7 +462,7 @@ func (m *Manager) PushModel(ctx context.Context, model string, w http.ResponseWr
// Create a flusher to ensure chunks are sent immediately
flusher, ok := w.(http.Flusher)
if !ok {
return fmt.Errorf("streaming not supported")
return errors.New("streaming not supported")
}
// Create a progress writer that writes to the response