@phaseo/ai-sdk-provider package.
Install
AI SDK 7 and the native PhaseoProviderV4 implementation are the default for new projects:
latest tag and therefore selects the active AI SDK 7-compatible provider line. The package declares AI SDK 7 as a peer dependency, which npm installs automatically.
AI SDK 6 maintenance line
AI SDK 6 uses the previousProviderV3 contract. Install its tagged compatibility release:
AI SDK 5 compatibility
AI SDK 5 accepts the older ProviderV2 contract. Install Phaseo’s dedicated compatibility release:ai major (ai@^7, ai@^6, or ai@^5) separately.
Basic usage
Supported AI SDK 7 surfaces
Provider 2.x implements and tests AI SDK 7’s native v4 contracts for:- Text generation and streaming
- Provider-agnostic reasoning settings and reasoning output
- Standard function tools, streamed tool inputs, and tool-result round trips
- JSON and JSON Schema structured output
- Text and image file inputs using V7’s tagged file-data format
- URL citation sources
- Embeddings and image generation
- Reranking
- Transcription and speech generation
- Provider metadata, usage, request headers, abort signals, and raw stream chunks
Reranking and capability boundaries
Reranking is available through the AI SDKrerank() helper and phaseo.rerankingModel(modelId). ProviderV4 capabilities that require Phaseo API surfaces not currently exposed—managed file uploads and references, skills, and provider-executed tool definitions, results, or approval responses—are not advertised. Application-executed function tools continue to use the AI SDK’s normal execution and approval flow. Unsupported provider-specific or custom prompt parts fail with a clear error instead of being silently discarded.