Skip to content

v0.2.0 — 2025 Models, All-Provider Complete, Timeout, Docs

Choose a tag to compare

@lacrous lacrous released this 22 Aug 13:22
· 25 commits to main since this release

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

  • AdapterName type now includes azure, groq, ollama
  • require("node:fs") replaced with ESM import (was broken in ESM context)
  • process.cwd() guarded for non-Node environments (browser/Deno)
  • WebSocketTransport clear error message for Node 18–21
  • dist/ fully rebuilt — was missing 12 of 30 modules
  • TypeScript compilation — added missing DOM/Node type definitions
  • Transport.body type narrowed to string (was incompatible Uint8Array)

📝 Documentation

🧪 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