Repository navigation
v0.1.6
Highlights
Streaming dispatch (#14)
- New
Services.stream()/Groups.stream()(and async siblings) return a context-managedStreamingResponseso callers can lazily iterate LLM SSE / NDJSON / chunked bodies instead of buffering the whole response. iter_events()discriminates onContent-Type(sse/ndjson/line/bytes) and yields adonesentinel on the SSEdata: [DONE]convention. SSE frames split across TCP chunks are reassembled at the parser layer.- Same auth, interface resolution, and URL composition as the existing
dispatch()path.
Request-log storage mode (#15)
RequestLogs.start()(and async sibling) now acceptstruncate_long_message: bool | None = None.True→ truncated (8 KB inline preview, no S3).False→ complete (full body uploaded to S3, retrievable via the detail endpoint).None(default) → preserve the user's existingpreference.loggingmode; fall back to truncated.
- SDK regenerated from the
complete-logging-implspec.
Install
pip install unitysvc-py==0.1.6