Repository navigation
0.1.0
Initial release: OpenRouter as a Foundation Models server-side language model.
- Any OpenRouter model ID via
LanguageModelSession— streaming, tool
calling, guided generation, reasoning - Strict
response_format: json_schemawith schema sanitization, the
strict-mode rewrite, automaticprovider.require_parameters, and
optional client-side validation retries (structuredOutputRetries) @Guidebounds on the wire with a measured per-vendor fidelity table
(VendorDefaults, seeded byModelConformanceTests) and an automatic
minimal-schema fallback for providers that reject constraint keywords- Reasoning: effort/budget policies, framework hint mapping, and verbatim
reasoning_detailsreplay across tool turns openrouter:web_searchserver tool withOpenRouterCitationSegment
citations- Prompt caching: top-level automatic
cache_controlfor Anthropic-family
models, per-block breakpoints elsewhere;session_idsticky routing - Service tiers (
flex/priority/fast); served tier and generation cost
surfaced on response transcript metadata - Image normalization (orientation, downscale, metadata-free JPEG)
- Typed errors incl. moderation →
guardrailViolation,content_filter
and refusal finishes, and request correlators ServerFoundationModelspackage trait (requires 0.7.0): the same bridge
compiles against euwars/ServerFoundationModels — Linux included,
verified in CI on theswift:6.2container