Skip to content

Add opt-in artifact output to generic task streams - #1166

Merged
0xShug0 merged 1 commit into
mainfrom
feature/streaming-artifact-support
Nov 2, 2026
Merged

0xShug0 merged 1 commit into
mainfrom
feature/streaming-artifact-support

Conversation

@0xShug0

@0xShug0 0xShug0 commented Nov 2, 2026

Copy link
Copy Markdown
Owner

Allows generic streaming clients to receive model artifacts as they are produced through /v1/tasks/stream.

Set top-level include_artifacts: true to serialize StreamEvent.output_artifacts in JSON or SSE events. Artifacts use the existing final-result representation: id, kind, Base64 payload, and metadata. With this opt-in, an artifact-only event counts toward time to first output.

The default remains false, preserving existing event fields and first-output timing. Final-result artifact serialization is unchanged. Both legacy and parallel server runtimes use the same protocol helpers; the server does not interpret model-specific payloads.

Includes API documentation and generic tests for default/opt-in behavior, artifact serialization, and JSON/SSE handlers with one or two session slots. No model code, model contracts, or GGML changes.

Validation: Debug server build and the targeted server_parallel_lifecycle_test stream-artifacts --log checks.

@0xShug0
0xShug0 merged commit a01aed4 into main Nov 2, 2026
12 checks passed
@0xShug0
0xShug0 deleted the feature/streaming-artifact-support branch November 2, 2026 03:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant