Repository navigation
What's Changed
- Batch: support structured output in startBatch and getBatchResults by @kblok in #1391
- SmoothStream: skip the delay while the document is hidden by @kblok in #1394
- streamText output: incremental array parser and output transform by @kblok in #1399
- toResponseMessages: put approval responses in the tool message like upstream by @kblok in #1400
- Port tool message and legacy URL download tests of convertToLanguageModelMessage by @kblok in #1401
- Add Tool.InputTransform for validate-tool-approvals transform tests by @kblok in #1411
- Port MistralEmbeddingModel and its options by @kblok in #1409
- streamLanguageModelCall follow-ups: request url origin, error normalization, percentiles by @kblok in #1408
- Run toModelOutput in ToResponseMessages only by @kblok in #1403
- parseToolCall: keep the input schema input when the input is transformed by @kblok in #1402
- prepareStep: pass and override experimental_sandbox by @kblok in #1415
- Add Agent with callOptionsSchema and per-call options by @kblok in #1412
- Port the transformed approved input UI round-trip streamText test by @kblok in #1416
- streamText: decide tool approvals as calls arrive (executeToolsFromStream ordering) by @kblok in #1418
- Add Liquid decision provider (vercel/ai#25161) by @kblok in #1420
- Return OpenAI Responses input transformations in provider metadata by @kblok in #1421
- Add Gateway experimental extraction model by @kblok in #1425
- Port withOpenAIResponseRedaction and telemetry redaction of raw bodies by @kblok in #1427
- OpenAI Responses: map compaction items to custom parts by @kblok in #1428
- Add Azure MAI-Image-2.7 models and background option by @kblok in #1430
- CreateAgentUIStream: support agent call options by @kblok in #1433
- Port Google prompt block reason message tests (vercel/ai#25162) by @kblok in #1431
- Agent: add the ai-sdk-agent/tool-loop user-agent header by @kblok in #1432
- Add extraction models to provider registries and custom providers by @kblok in #1423
- StreamTranslate: type OutputAudioFormat as AudioFormat like upstream by @kblok in #1439
- xAI: port xai-batch and route its calls through XaiError.FailedResponseHandler by @kblok in #1438
- Gateway: provider-style VercelRequestContext.Use(get) by @kblok in #1442
- xAI: port XaiImageModel and XaiSpeechModel by @kblok in #1441
- streamText/generateText: add OnEnd, deprecate OnFinish alias by @kblok in #1444
- Gateway: resolve credentials with the OIDC fallback in model and batch headers by @kblok in #1447
- Batch: typed output for batch results and batch-types type tests by @kblok in #1454
- streamText: StreamTextLowMemoryAsync single-consumer result and partialOutputStream guard by @kblok in #1462
- Expose OnLanguageModelCallStart and LanguageModelCallStartEvent publicly by @kblok in #1465
- Port streamText options.output onEnd tests (#1398) by @kblok in #1461
- streamText: add the experimental_transform option and wire smoothStream by @kblok in #1457
- Gateway: port 'should reuse gateway headers and fetch' for imageModel/videoModel by @kblok in #1449
- Google batch: start, status, cancel, list, and schema guard by @kblok in #1451
- StreamLanguageModelCall: port onStart by @kblok in #1463
- docs-site: regenerate the API reference by @kblok in #1455
- Port toolOrder for streamLanguageModelCall, generateText, streamText and agents by @kblok in #1464
- Port transform input schema tests with Tool.InputTransform by @kblok in #1468
- prepareTools: pass the sandbox session to tool description functions by @kblok in #1469
- streamText: extract the executeToolsFromStream transformer by @kblok in #1471
- Port Azure MAI-Image-2.7 transparent background example by @kblok in #1480
- Gateway: port generate-model-settings and its tests by @kblok in #1479
- Typed OutputSpec factories for Text, Choice and Json by @kblok in #1498
- Gateway: send team header and user-agent on batch requests by @kblok in #1494
- xAI image: parallel URL downloads, stricter headers/abort tests by @kblok in #1492
- streamObject: port StreamObjectAsync with the incremental array parser by @kblok in #1490
- Batch: port supportedUrls of BatchV4 by @kblok in #1484
- Forward preliminary flag on provider tool results by @kblok in #1482
- Add Gemini 4 Neon thinking levels by @kblok in #1481
- OpenAI Responses doGenerate: return request body with redaction view (#1426) by @kblok in #1478
- Port sandbox/toolsContext and executeLanguageModelCallInTelemetryContext of streamLanguageModelCall by @kblok in #1467
- Google batch: start image generation requests by @kblok in #1496
- Port remaining batch-types.test-d.ts type tests by @kblok in #1500
- generateText: notify OnEnd before structured-output parsing, as upstream by @kblok in #1493
- generateText: port onStart/onStepStart events with toolOrder by @kblok in #1510
- GenerateTextResult.Content aggregates content across all steps by @kblok in #1502
- Name the stepNumber/model callback test like upstream and mark it covered by @kblok in #1511
- streamText/generateText end result: expose callId, contexts, total usage and tool splits by @kblok in #1507
- Add the interrupt option to steering by @kblok in #1489
- streamText: compare string partial outputs directly by @kblok in #1503
- streamTextLowMemory: content collection, backpressure, response helpers by @kblok in #1509
- streamText: record steps, results and callbacks from the transformed stream by @kblok in #1514
- Google: preserve streamed tool ordering and signature history by @kblok in #1515
- streamText: port StreamRetryAttemptBoundaryPart and the tool queue reset by @kblok in #1517
- Mistral: realtime transcription over WebSocket by @kblok in #1522
- Sample/winforms gpt live by @kblok in #1529
- Gateway: opt-in streaming decoding of large base64 images by @kblok in #1521
- OpenAI: typed tool, tool-result and system-message options for Responses by @kblok in #1525
- Examples: port Open Responses bare extension example by @kblok in #1526
- Batch: convert prompt file URLs with the batch API supportedUrls by @kblok in #1534
- Open Responses: customToolId option on the input converter by @kblok in #1532
- streamObject: port experimental_repairText and telemetry aliases (#1473) by @kblok in #1537
- streamObject: msToFirstChunk, wrapGatewayError, sanitizeRequestMetadata by @kblok in #1543
- PrepareStep: add runtimeContext and toolsContext (input and result) by @kblok in #1542
- streamText: port per-call and global telemetry integrations by @kblok in #1554
- generateText: onEnd event shape and prepareStep tool-loop tests (#1501) by @kblok in #1553
- Batch types: string response timestamps and undefined Output.text input by @kblok in #1551
- Typed output for GenerateTextResult and StreamTextResult by @kblok in #1549
- Google batch: assert abort signal and error url (#1495) by @kblok in #1546
- XaiImageModel: take header config like upstream by @kblok in #1544
- streamText: call onStart and onStepStart once per step by @kblok in #1538
- OpenAI Responses: port doGenerate reasoning and providerMetadata key tests by @kblok in #1528
- GenerateTextResult: expose Reasoning parts and Model like upstream GenerateTextEndEvent by @kblok in #1559
- Mistral: port Large 4 low/medium/high reasoning effort tests by @kblok in #1557
- Pass seed 0 through in Gateway image and KlingAI video models by @kblok in #1556
- streamObject: richer onStart/onStepStart events and request URL sanitization by @kblok in #1541
- streamText: assert full transform test snapshots with the injected clock by @kblok in #1568
- Bedrock: port Claude 5 structured output tests by @kblok in #1563
- Google: classify stream errors without numeric codes by @kblok in #1562
- generateText: prepareStep call settings, user-agent header and telemetry onLanguageModelCallStart by @kblok in #1561
- StreamTextResult: add content, toolCalls, toolResults, finalStep and related result promises by @kblok in #1566
- Port providers preserve valid JSON tool arguments and serialize result graphs by @kblok in #1565
- Open Responses: emit response-metadata on response.created in doStream by @kblok in #1560
- streamText: complete the onStart lifecycle test (#1505) by @kblok in #1558
- streamText: port invokeToolCallbacksFromStream (tool input callbacks) by @kblok in #1573
- Add typed CreateJsonResponseHandler with experimental binary fields by @kblok in #1570
- LogWarnings: observe empty warnings and log per-step warnings by @kblok in #1530
- OpenAI Responses: typed text format for TextFormatUpdate by @kblok in #1585
- Port the experimental_binaryFields memory regression tests by @kblok in #1582
- Bedrock: keep every function tool on a named tool choice for Anthropic models by @kblok in #1581
- OpenAI-compatible: send reasoningEffort null as reasoning_effort null by @kblok in #1575
- Open Responses doStream: response-metadata, custom tool calls, completed-item arguments by @kblok in #1572
- Add the Parallel provider with a web-grounded decision model by @kblok in #1587
- Telemetry: port includeRuntimeContext and includeToolsContext by @kblok in #1600
- generateObject: port experimental_repairText and telemetry aliases by @kblok in #1596
- Batch: convert file parts in OpenAI and xAI batch prompts by @kblok in #1595
- Extract: telemetry, runtimeContext and lifecycle callbacks by @kblok in #1589
- Open Responses: customToolId option and custom tool support by @kblok in #1594
- Mistral: port realtime voice agent REST pieces and provider transport types by @kblok in #1586
- Google batch: assert the abort signal on every call of the resumable upload test by @kblok in #1601
- Gateway: typed GatewayProviderMetadata and async-job metadata by @kblok in #1607
- generateText: port full prepareStep snapshot assertions (#1552) by @kblok in #1608
- generateText: type the default output as string by @kblok in #1605
- WebFetch: return network_error with upstream message for invalid redirect Location by @kblok in #1604
- generateObject: send the ai user-agent in start events by @kblok in #1603
- Anthropic: return the final text when the JSON response tool is never called by @kblok in #1612
- Groq: extract ConvertToGroqChatMessages and port its tests by @kblok in #1614
- generateText: call the tool input callbacks (onInputStart, onInputAvailable) by @kblok in #1618
- createJsonResponseHandler: keep bytes out of validator error messages by @kblok in #1616
- HeyGen: defer video duration limits to the provider by @kblok in #1611
- Bedrock: provider tools, web-tool filtering and forced tool use rejection in prepareTools by @kblok in #1621
- fixJson: drop an incomplete negative number at the start of an array by @kblok in #1622
- streamText: port the remaining streamRetries recovery tests by @kblok in #1630
- streamText: port result.pipeTextStreamToResponse test by @kblok in #1632
- Mistral: port MistralRealtimeTransport (LiveKit) and CreateTransport by @kblok in #1634
- ElevenLabs: transcribe a hosted file with sourceUrl (#818) by @kblok in #1574
- generateObject: sanitize the provider request URL by @kblok in #1602
- Map reasoning consistently across providers by @kblok in #1642
- ElevenLabs: normalize HTTP wav output format by @kblok in #1636
- streamText: honor GenerateId and a clock for the step response by @kblok in #1615
- Gateway: add DeepSeek Search and Fetch tools by @kblok in #1577
- Do not sign approval requests of automatically denied tool calls by @kblok in #1648
- ElevenLabs: speech withTimestamps and music timestamp parser (#791) by @kblok in #1645
- Providers: support async credential resolution (upstream #24145) by @kblok in #1661
- Batch: StartBatchOptions and BatchReference results (#1606) by @kblok in #1670
- Examples: add GenerateVideoHeyGenLongClip by @kblok in #1671
- Telemetry: port remaining text generation ITelemetry callbacks by @kblok in #1668
- Google: close streamed string args on their final chunk by @kblok in #1609
- Extraction: accept non-integer source offsets like zod z.number() by @kblok in #1677
- Gateway: add a fetch seam and port the cancellation tests by @kblok in #1676
- Bedrock prepareTools: add prepareAnthropicTools seam by @kblok in #1675
- Telemetry: augment events with recordInputs/recordOutputs/functionId and filter content by @kblok in #1664
- Bedrock: send anthropicBeta without tool betas (#1624) by @kblok in #1678
- Ship Vercel.AI.Mistral.LiveKit, a LiveKit adapter for MistralRealtimeTransport by @kblok in #1680
- generateObject/streamObject: wire telemetry onStart, onObjectStepStart and onObjectStepEnd by @kblok in #1659
- AssemblyAI: add assemblyai-tts-1 speech and assemblyai-stt-3-7 transcription by @kblok in #1651
- OpenAI: map reasoning to efforts supported by GPT-5.x models by @kblok in #1638
- MCP HTTP transport: expose HTTP status and response body on JSON-RPC error responses by @kblok in #1647
- ElevenLabs: music, sound-generation and text-to-dialogue speech models by @kblok in #1682
- Extract and decide telemetry through TelemetryOptions and ITelemetry by @kblok in #1656
- Gateway: support Live models over WebSocket by @kblok in #1657
- Port Fal, Google, Google Vertex and Replicate video models by @kblok in #1685
- Moonshot AI: map reasoning by model family (Kimi K3, K2.7, unknown models) by @kblok in #1684
- QuiverAI: add the language model with top-level reasoning mapping by @kblok in #1690
- Bedrock: port disabled Anthropic thinking handling (between_tools) by @kblok in #1686
- ExtractJsonMiddleware: add the transform option by @kblok in #1693
- Gateway: port GatewayRerankingModel and reranking factories by @kblok in #1672
- AssemblyAI: port model catalog, typed speech options, and examples by @kblok in #1697
- Bedrock: Converse ApiKey, strict empty callback keys, regenerate API reference by @kblok in #1703
- generateObject/streamObject: dispatch telemetry onEnd and onError by @kblok in #1701
- Telemetry: tracing channel and experimental_extract/experimental_decide spans by @kblok in #1699
- Telemetry: filter tool execution events (#1662) by @kblok in #1714
- OpenTelemetry: port the integration with extract and decide spans by @kblok in #1710
- generateText: populate the step request body and RedactBody (include option) by @kblok in #1717
- Telemetry: port the remaining ITelemetry callbacks and dispatcher tests (#1654) by @kblok in #1715
- MCP: probe server/discover and explain legacy incompatibility (#1646) by @kblok in #1695
Full Changelog: v0.3.0...v0.4.0