TypeScript SDK unifies OpenAI, Anthropic, Google and other providers
j4ys0nj · reddit · 2026-07-22
The author open-sourced Rosetta AI SDK, a TypeScript multi-provider abstraction layer built over a year and released under the MIT license.
What it covers
- Unified chat, streaming, and embeddings across OpenAI, Anthropic, Google, Groq, ElevenLabs, and OpenAI-compatible endpoints.
- Handles provider-specific edge cases that don’t fit a single interface well: Anthropic tool calling and code-execution events, structured output differences, grounding/citations, thinking blocks, and TTS/STT.
- Uses a shared interface plus an extraParams passthrough for unmapped features, and raises explicit UnsupportedFeatureErrors instead of silently dropping unsupported options.
Core question
The post asks how others balance abstraction versus exposing provider-specific capabilities directly in code.
More from coding & agent
- Cursor team is building Cursor with Cursor, inside Cursor — soleio · 2026-07-22
- NVIDIA shows Unreal Engine wired to Claude Code and Cursor via MCP — nptacek · 2026-07-22
- Local models face a single-shot HTML flight simulator test across six runs — JLeonsarmiento · 2026-07-22
- Eval design needs “model empathy,” not just harder tasks — i_dg23 · 2026-07-22
- Agent tool schema drift can fail silently when registrations lag behind code — hannune · 2026-07-22
- Mythos turns a Claude Code ad request into a dancing flame persona — repligate · 2026-07-22