Skip to content

v0.5.0

Choose a tag to compare

@kblok kblok released this 30 Nov 16:32
· 211 commits to main since this release
49dbdf3

What's Changed

  • Agent: pass every settings callback and the call's callbacks through to streamText by @kblok in #1721
  • docs: add Releases section and v0.4.0 notes by @kblok in #1729
  • Batch: Core content in results, TextBatchRequest/ImageBatchRequest (#1669) by @kblok in #1724
  • Moonshot AI: port thinking options tests, sampling warnings, usage conversion by @kblok in #1734
  • ElevenLabs: validate speech options, full catalog entry, remaining speech describes (#1681) by @kblok in #1736
  • Bedrock: add anthropicTools factory registry (#1674) by @kblok in #1728
  • Gateway models: map ApiConnectionException and pass the resolved auth method to MapFailure by @kblok in #1726
  • streamObject: stopping a reader cancels the model stream by @kblok in #1725
  • Fal: port the rest of fal-model-catalog (#1691) by @kblok in #1737
  • MCP client: protocol version header, bounded discovery, discovery tests by @kblok in #1740
  • AssemblyAI: port typed AssemblyAITranscriptionModelOptions by @kblok in #1743
  • OpenTelemetry: decision span response data, StreamAbortContext.CallId, overridable decide hooks by @kblok in #1759
  • OpenTelemetry: embed, rerank, speech and transcription spans by @kblok in #1756
  • ElevenLabs: port the music, sound-effects and dialogue timestamp tests (#1643) by @kblok in #1723
  • GenerateText: port 'should carry messages from prepareStep forward to the next step' by @kblok in #1765
  • OpenTelemetry: port onStepError and four more open-telemetry.test.ts tests by @kblok in #1761
  • ExtractJsonMiddleware: port wrapStream by @kblok in #1742
  • QuiverAI: classify only 429 and 5xx HTTP errors as retryable by @kblok in #1732
  • OpenTelemetry: inference duration metrics, endpoint attributes, toolChoice and provider-executed tool spans by @kblok in #1758
  • Telemetry: augment generateObject/streamObject events by @kblok in #1744
  • QuiverAI: port the model catalog and QuiverAILanguageModelOptions by @kblok in #1731
  • Telemetry: generateText, streamText, step, languageModelCall and executeTool tracing spans by @kblok in #1772
  • Resolvable: accept a nullable value in the implicit conversion by @kblok in #1770
  • StreamTranscribe: emit OnStreamTranscriptionStart/End and OnError telemetry by @kblok in #1762
  • Batch: declare per-modality model IDs on IBatchApi and validate at start by @kblok in #1774
  • Bedrock: port provider methods tests (embedding model, model settings) by @kblok in #1776
  • Telemetry: redact executeLanguageModelCall results and errors for nested integrations by @kblok in #1764
  • AgentOptions: add OnError and MaxRetries like ToolLoopAgent settings by @kblok in #1768
  • Agent: per-call onStepStart/onToolExecutionStart/onToolExecutionEnd and callId parity by @kblok in #1766
  • QuiverAI: port QuiverAIImageModelOptions by @kblok in #1777
  • Moonshot AI: port remaining doGenerate > text tests by @kblok in #1781
  • ElevenLabs: port the transcription catalog entry and elevenLabsModelCatalog by @kblok in #1779
  • McpClient: keep discover result state on an instance client by @kblok in #1784
  • Providers without language models throw NoSuchModelError (13 providers) by @kblok in #1790
  • MCP: outputSchema support for client tools (schemas option, typed output) by @kblok in #1786
  • Gateway: redact BYOK credentials in telemetry copies of request bodies by @kblok in #1792
  • Speech providers: report provider usage on SpeechModelResult.Usage by @kblok in #1793
  • Document generateSpeech byteLength test exclusion by @kblok in #1794
  • Moonshot: prompt cache options and cache write tokens by TTL by @kblok in #1798
  • OpenTelemetry: generateObject and streamObject spans by @kblok in #1797
  • Telemetry: generate-text restricted telemetry dispatcher and tests (#1763) by @kblok in #1800
  • OpenTelemetry: port the ai.generateObject agentSpanName cases by @kblok in #1752
  • Agent: per-call onStart/onStepEnd/onEnd and deprecated experimental aliases by @kblok in #1802
  • streamText: default error logging when no onError is set by @kblok in #1801
  • Batch types: IBatchApi and typed Options views by @kblok in #1806
  • Bedrock: port AmazonBedrockImageModel, provider.Image/ImageModel and tests by @kblok in #1809
  • Telemetry: embed, embedMany and rerank tracing-channel spans by @kblok in #1804
  • Moonshot AI: port convert-to-moonshotai-chat-messages and chat api-types validation by @kblok in #1813
  • StreamSpeech: bounded backpressure by @kblok in #1807
  • Google: keep empty arrays and objects in streamed Vertex tool-call input by @kblok in #1789
  • Object events: no functionId on the callback event by @kblok in #1785
  • Add Vertex streamed empty-container reproduction example by @kblok in #1822
  • MCPClientError: keep the JSON-RPC error object as cause by @kblok in #1821
  • MCP: return the call-tool result on isError in automatic mode by @kblok in #1820
  • MCP client: getter-only ProtocolVersion with SetProtocolVersion by @kblok in #1819
  • OpenTelemetry: gen_ai messages, tool definitions and execute hooks on text generation spans by @kblok in #1817
  • streamText: emit an error part for toolChoice none violations by @kblok in #1825
  • Add opt-in GuardedFetch with connect-time DNS validation by @kblok in #1811
  • Web fetch: port defuddle exact and partial selector removal by @kblok in #1833
  • Tracing channel: current-span parentage, request sanitizing, tool/step credential redaction by @kblok in #1839
  • Bedrock: port the API key image and embedding model provider tests by @kblok in #1842
  • Moonshot AI: build max_completion_tokens in getArgs and validate moonshotaiLanguageModelOptions by @kblok in #1844
  • Telemetry: route generateText and streamText through GenerateTextRestrictedTelemetryDispatcher by @kblok in #1836
  • docs: remove Compatibility, Warnings and Secure URL fetching articles; add a Models section by @kblok in #1738
  • Agent: forward call settings, include and download; port ai/agent tests by @kblok in #1852
  • OpenTelemetry: durable span ids, captureContext, event timestamps by @kblok in #1855
  • docs: Models pages for ByteDance, Hume, Kling AI and Open Responses; real examples for six providers by @kblok in #1857
  • GuardedFetch: port the Fal, MCP and fetchUntrustedUrl guarded-fetch tests by @kblok in #1843
  • generateObject: output modes, toJsonResponse and upstream test parity by @kblok in #1859
  • OpenTelemetry: ignore preliminary provider-executed tool results by @kblok in #1850
  • Regenerate the API reference by @kblok in #1841
  • Port upstream ai/model resolve-model unit tests by @kblok in #1863
  • Gateway: carry the request body on API errors and redact BYOK credentials in its telemetry view by @kblok in #1827
  • Middleware: upstream hooks, embedding/image/provider wrappers, tool input examples, ai/middleware tests by @kblok in #1865
  • ElevenLabs: streaming speech over WebSocket and text-to-dialogue streaming by @kblok in #1835
  • Port stop-condition and approved-tool-call-concurrency upstream tests by @kblok in #1860
  • Port ai/realtime command tracker, event channel and event reducer (#45) by @kblok in #1877
  • Cover upstream ai/telemetry unit tests (#48) by @kblok in #1882
  • Port ai/registry upstream tests: CustomProvider string aliases, registry image middleware by @kblok in #1880
  • Port upstream ai/prompt unit tests by @kblok in #1867
  • Port prompt-download-cancellation upstream tests (#38) by @kblok in #1878
  • Port upstream citations tests: text-end, malformed and repeated citations (#38) by @kblok in #1887
  • Cover upstream ai/ui-message-stream unit tests (#55) by @kblok in #1891
  • Port ai/ui helper unit tests: lastAssistantMessageIsComplete*, UI part guards (#54) by @kblok in #1888
  • Cover upstream unit tests: alibaba (#60) by @kblok in #1897
  • Bedrock: port cache point and chat options upstream tests by @kblok in #1893
  • Port stream-text-timeout upstream tests and fix streamText retry timeouts (#38) by @kblok in #1895
  • Cover upstream unit tests: azure (#70) by @kblok in #1901
  • Cover upstream unit tests: black-forest-labs (#72) by @kblok in #1902
  • Cover upstream unit tests: anthropic (#65) by @kblok in #1908
  • Cover upstream unit tests: cartesia (#74) by @kblok in #1909
  • Cover DeepSeek chat deprecated-warning setting in upstream tests (#80) by @kblok in #1913
  • ElevenLabs: stream Scribe v2 Realtime transcription and cover upstream unit tests by @kblok in #1916
  • Cover upstream unit tests: cohere (#76) by @kblok in #1915
  • Cover upstream unit tests: fish-audio by @kblok in #1917
  • Cover upstream unit test: amazon-bedrock/anthropic keep strict tools enabled (#62) by @kblok in #1899
  • Cover upstream unit tests: google-vertex by @kblok in #1931
  • Cover upstream unit tests: gateway by @kblok in #1921
  • Cover upstream unit tests: google-vertex/xai (#99) by @kblok in #1933
  • Cover upstream unit tests: bytedance (#73) by @kblok in #1910
  • Cover upstream unit tests: google/transcription (Gemini Live streaming) by @kblok in #1935
  • Google: multimodal embeddings, raw embedding response, first upstream test slice (#91) by @kblok in #1927
  • Add Google speech translation model (upstream google/speech-translation) by @kblok in #1934
  • Cover upstream unit tests: groq (#105) by @kblok in #1937
  • MCP client: paginated tools/list, tools capability check, upstream init tests (#111) by @kblok in #1948
  • MCP stdio: custom env overrides inherited defaults; remaining upstream tests (#112) by @kblok in #1940
  • Cover upstream unit tests: google/interactions by @kblok in #1951
  • Cover upstream unit tests: moonshotai by @kblok in #1954
  • Mistral: add MistralChatLanguageModel and port upstream mistral unit tests by @kblok in #1953
  • OpenAI: cover remaining upstream unit tests by @kblok in #1959
  • OpenAICompatible: port upstream supportsMultiPartToolContent provider test by @kblok in #1957
  • Cover upstream unit tests: minimax provider (#114) by @kblok in #1947
  • Cover upstream unit tests: openai/chat (#126) by @kblok in #1962
  • OpenAICompatible: cover upstream openai-compatible/chat unit tests (#121) by @kblok in #1964
  • OpenAI image: finish upstream unit test coverage (#130) by @kblok in #1966
  • Cover upstream unit tests: openai/completion (#127) by @kblok in #1967
  • OpenAI files: uploadFile call API, cover upstream openai/files tests by @kblok in #1968
  • Cover upstream unit tests: openai/responses (#133) by @kblok in #1970
  • Cover upstream unit tests: openai/transcription (#137) by @kblok in #1972
  • Cover upstream unit tests: otel (#138) by @kblok in #1975
  • Cover upstream unit tests: perplexity (#139) by @kblok in #1978
  • Cover upstream unit tests: provider-utils argument state and hostname (#141) by @kblok in #1981
  • Mark zod3-to-json-schema upstream tests out of scope by @kblok in #1983
  • Cover upstream unit tests: togetherai (#149) by @kblok in #1984
  • Cover upstream unit tests: xai (#153) by @kblok in #1985
  • Cover upstream unit tests: prodia (#140) by @kblok in #1977
  • Cover Z.AI streamed tool-input upstream test by @kblok in #1986
  • xAI Responses: send tool content output (image/text) to function_call_output by @kblok in #1989
  • Rename test files and classes that have "Upstream" in the name by @kblok in #1991
  • Fill CallWarning.Feature for Perplexity and HuggingFace by @kblok in #1994
  • OpenAI-compatible image: assert abort signal on download, carry URL on download errors by @kblok in #1995
  • Mark upstream cases rejected by the typed API as out of scope by @kblok in #1996
  • Carry the call input on provider-executed tool results by @kblok in #1997
  • Add redirect option to SseMcpTransport by @kblok in #1999
  • parseToolCall: report invalid tool input JSON as a JSON parse failure by @kblok in #2001
  • Complete the refine tool input tests with tool execution callbacks (#623) by @kblok in #2002
  • Port invalid provider-executed tool call test in full (#629) by @kblok in #2005
  • Add ExperimentalRepairToolCall alias to AgentOptions (#624) by @kblok in #2004
  • Take provider guide code blocks from compiled examples (#250) by @kblok in #1988
  • Move Google continuation tests into the upstream describe layout (#651) by @kblok in #2007
  • Anthropic: return provider-executed results as GeneratedToolResult by @kblok in #2014
  • Port image editing capabilities (supportsFileInputs / supportsMaskInputs) for the remaining image models and wrapImageModel by @kblok in #2017
  • Document Alibaba prompt caching (cacheControl) by @kblok in #2024
  • Move Fal, Luma, ByteDance and Rev.ai parity tests into the upstream directory layout by @kblok in #2018
  • Port streamText repeated-approval follow-up test and ApprovalResponsePart.ProviderExecuted by @kblok in #2026
  • OpenTelemetry: omit malformed finish reason arrays on the chat span by @kblok in #2027
  • OpenTelemetry: replaceable clock for inference duration sums by @kblok in #2028
  • MCP: add maxRetries to the MCP client by @kblok in #2029
  • Add typed MiniMax provider options by @kblok in #2012
  • Port Gateway BYOK batch start error redaction test by @kblok in #2031
  • Web fetch: port defuddle content scoring and removeLowScoring by @kblok in #2032
  • Interactions: read x-gemini-service-tier from the background POST headers by @kblok in #2019
  • Web fetch: port defuddle metadata title extraction, language and includeReplies by @kblok in #2047
  • SpeechModelStreamCall: carry the abort reason (#1834) by @kblok in #2048
  • Web fetch: port the Turndown-style markdown output of defuddle by @kblok in #2050
  • generateText: retry each model call with maxRetries and throw RetryError by @kblok in #2053
  • Web fetch: port defuddle content-patterns, small-image and hidden-element removals by @kblok in #2052
  • OpenAI batch: output file expiry and file ids on status by @kblok in #2054
  • Limit the size of a single server-sent event (64 MiB, 512 MiB for Responses) by @kblok in #2056
  • OpenTelemetry durable runs: apply derived span ids to Activity by @kblok in #2059
  • docs: per-model Vercel AI Gateway links on the Models pages by @kblok in #2064
  • generateObject: transform option, port zod transform/preprocess tests by @kblok in #2066
  • Port ai/prompt base64 string file data tests (#1868) by @kblok in #2070
  • Route AiClient model resolution through ResolveModel by @kblok in #2068
  • Transcribe: accept only specification v4 (#1862) by @kblok in #2072
  • Port BrowserRealtimeWebRTC and its sender ownership and shutdown tests (#1870) by @kblok in #2074

Full Changelog: v0.4.0...v0.5.0