github vercel/ai @ai-sdk/openai@4.0.109

latest releases: @ai-sdk/zai@3.0.47, @ai-sdk/xai@5.0.39, @ai-sdk/workflow-harness@1.0.174...
5 hours ago

Patch Changes

  • 27528db: Expose customTool through azure.tools for Azure Responses models, sharing the OpenAI custom tool factory and its raw string input support.

  • 7bb309d: add memoryLimit and networkPolicy properties in codeInterpreter tool

  • 7a90522: Add Secure MCP tunnel support to the OpenAI MCP tool via tunnelId. Tunnel targets cannot be combined with serverUrl or connectorId; existing URL and connector configurations remain compatible.

  • 6549344: feat(openai): support GPT Image 2.6 models with complexity, markup-guided edits (markup), animated GIF output (outputFormat: 'gif', frameCount, frameDurationMs), and safetyIdentifier for image models

  • 5f9bb8e: feat (provider/openai): forward the moderation option to /images/edits

  • 934100c: Report the actual OpenAI Chat HTTP endpoint (also used by Azure Chat and Bedrock Mantle Chat) through optional request metadata and model-call end events. Record its host and port on OpenTelemetry chat spans without exposing URL credentials, paths, queries, or fragments. Expose only the sanitized HTTP origin in text and object generation results and step/finish callbacks. Providers that do not report an endpoint leave these attributes unset.

  • 892af4d: feat (provider/openai): implement server-side realtime extensions

    OpenAIRealtimeModel now implements getServerWebSocketConfig(), returning the upstream realtime WebSocket URL for conversation and transcription intents plus header auth derived from the model's configured credentials. Dedicated transcription sessions serialize with session.type: "transcription" and the selected realtime model id. Translation is rejected until the normalized realtime codec supports its distinct wire protocol. The event mapper now populates normalized usage on response-done and input-transcription-completed (gross input/output token counts with cached portions reported separately; duration usage for duration-billed transcription).

    Transcription serialization honors the explicit transcription model and rejects unsupported output settings. Gross token totals and reported modality/cache counts are retained; duration uses seconds. OpenAI Live retains its existing connection API and rejects unsupported intents.

  • 243bf22: Forward per-message providerOptions.openai.name on Chat Completions system, developer, user, and assistant messages. Validate names as strings and warn when configured on unsupported tool messages.

  • 5cc6d28: Expose azure.tools.shell for local and hosted shell execution through the Azure Responses API.

  • 41465fd: Expose optional transcription word timings separately from segments and accept shared timestampGranularities. Explicit provider timing settings take precedence. OpenAI now sends timestamp_granularities only with verbose_json and warns when a requested timing is unavailable or excluded.

  • Updated dependencies [36802d4]

  • Updated dependencies [e0143b0]

  • Updated dependencies [934100c]

  • Updated dependencies [892af4d]

  • Updated dependencies [89aff56]

  • Updated dependencies [41465fd]

  • Updated dependencies [9754014]

  • Updated dependencies [4bb73b0]

  • Updated dependencies [2e44144]

    • @ai-sdk/provider@4.0.36
    • @ai-sdk/provider-utils@5.0.75

Don't miss a new ai release

NewReleases is sending notifications on new releases.