v0.2.0 — 2025 Models, All-Provider Complete, Timeout, Docs
What's New in v0.2.0
✅ complete() Now Works with All Providers
Previously only the OpenAI adapter supported non-streaming completion. All 6 adapters now implement complete():
- Anthropic, Google GenAI, Azure, Groq, Ollama
🧠 2025 Model Catalog
Updated with the latest models and pricing:
- OpenAI: GPT-4.1, GPT-4.1 Mini/Nano, o3, o3-mini, o4-mini, o1-mini
- Azure: GPT-4.1 (Azure), o3 Mini (Azure), GPT-4o Mini (Azure)
- Anthropic: Claude Opus 4, Claude 3.7 Sonnet
- Google: Gemini 2.5 Pro/Flash, Gemini 2.0 Flash
- Groq: Llama 4 Maverick/Scout, DeepSeek R1 Distill
- Ollama: Llama 3.3, Qwen 2.5 Coder
⏱️ Timeout Enforcement
Providers with a timeout config now enforce it via AbortSignal. Hung requests are automatically aborted.
📦 Subpath Imports
Tree-shakeable imports for smaller bundles:
import { OpenAIAdapter } from "@hilbras/sdk/adapters/openai";
import { estimateTokens } from "@hilbras/sdk/tokens";
import { loadConfig } from "@hilbras/sdk/config";🔧 Bug Fixes
AdapterNametype now includesazure,groq,ollamarequire("node:fs")replaced with ESM import (was broken in ESM context)process.cwd()guarded for non-Node environments (browser/Deno)WebSocketTransportclear error message for Node 18–21dist/fully rebuilt — was missing 12 of 30 modules- TypeScript compilation — added missing DOM/Node type definitions
Transport.bodytype narrowed tostring(was incompatibleUint8Array)
📝 Documentation
- README — provider table, feature examples, architecture diagram
- API Reference — complete type documentation
- Getting Started — step-by-step for all 6 providers
- Migration Guide — zero breaking changes
- CHANGELOG — full version history
- CONTRIBUTING — development guidelines
🧪 Tests — 97 Passing
97 tests across 11 test files (up from 59 tests in 6 files):
- All 6 provider adapters (streaming + non-streaming)
- Text-embedded tool call parsing (XML + JSON)
- Circuit breaker, retry, token counting, config
- Middleware pipeline, graceful degradation
Full Changelog: https://github.com/Hilbras/Hilbras-ai-sdk/blob/main/CHANGELOG.md
Docs: https://github.com/Hilbras/Hilbras-ai-sdk/tree/main/docs