Releases: airouter-dev/openai-sse-guard-swift
Releases · airouter-dev/openai-sse-guard-swift
Release list
OpenAISSEGuard 0.1.0
Bounded SSE replay evidence for SwiftPM
OpenAISSEGuard is a dependency-free observer for OpenAI-compatible SSE streams. It distinguishes Chat Completions, Responses terminal events, [DONE], incomplete/error states, bounded identifiers, and unexpected EOF without retaining generated text or choosing an HTTP retry policy.
Install
Add https://github.com/airouter-dev/openai-sse-guard-swift.git from 0.1.0 to a SwiftPM manifest.
Useful links
- Source README and replay-safety guide
- AI-ROUTER API gateway as one OpenAI-compatible endpoint context; the package is provider-neutral and not affiliated with OpenAI
- WHATWG SSE, OpenAI error codes, and MDN Retry-After
Validation
The tagged CI run passed swift package dump-package and 11 XCTest cases on Swift 5.9 (Ubuntu/macOS) and Swift 6.0 (Ubuntu).