Skip to content

build(deps): bump @ai-sdk/xai from 3.0.103 to 4.0.14#1020

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/ai-sdk/xai-4.0.13
Open

build(deps): bump @ai-sdk/xai from 3.0.103 to 4.0.14#1020
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/ai-sdk/xai-4.0.13

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 18, 2026

Copy link
Copy Markdown
Contributor

Bumps @ai-sdk/xai from 3.0.103 to 4.0.14.

Release notes

Sourced from @​ai-sdk/xai's releases.

@​ai-sdk/xai@​3.0.110

Patch Changes

  • 09ecf7b: fix(xai): handle empty HTTP 202 responses while polling videos
  • Updated dependencies [19093fd]
    • @​ai-sdk/provider-utils@​4.0.40
    • @​ai-sdk/openai-compatible@​2.0.62
Changelog

Sourced from @​ai-sdk/xai's changelog.

4.0.14

Patch Changes

  • Updated dependencies [0b61267]
    • @​ai-sdk/openai-compatible@​3.0.11

4.0.13

Patch Changes

  • Updated dependencies [31c7be8]
    • @​ai-sdk/provider-utils@​5.0.10
    • @​ai-sdk/openai-compatible@​3.0.10

4.0.12

Patch Changes

  • 4be62c1: fix(provider-utils): validate provider-response URLs in getFromApi

    getFromApi now has a validateUrl flag. It is optional so existing callers keep compiling (omitting it behaves like false, i.e. no validation), but all AI SDK provider packages set it explicitly at every call site so each one makes a visible trust decision. When true, the URL is routed through fetchWithValidatedRedirects — the same guard used by downloadBlob — which rejects private/loopback/link-local targets, re-validates every redirect hop, strips proxy/metadata/cookie request headers, and drops all caller headers except the user-agent on cross-origin redirects (custom API-key headers must not follow a redirect off-origin any more than Authorization may); blocked URLs throw DownloadError. It is enabled at the image/video/audio download and polling call sites where the URL comes from a provider response body; URLs built from developer-configured endpoints pass validateUrl: false and are unaffected.

    A new optional credentialedOrigin withholds caller headers unless the URL is same-origin with it, so the API key is not sent to a response-supplied host on a different origin.

    A new optional trustedOrigin exempts URLs (and redirect hops) that are same-origin with the developer-configured provider endpoint from target validation, so self-hosted and localhost deployments whose response URLs point back at the configured host keep working; all other hops are still validated.

    Also closes range gaps in validateDownloadUrl (IPv4 224.0.0.0/4 multicast and the TEST-NET documentation ranges 192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24; IPv6 documentation ranges 2001:db8::/32 and 3fff::/20), and follows only the fetch-spec redirect status codes (301/302/303/307/308) — a Location header on any other status is not followed. This guard performs string/literal checks only and does not resolve DNS; hostnames that resolve to private addresses and DNS rebinding remain out of scope and must be constrained at the network layer (or by injecting a Node fetch that pins the resolved IP at connect time) for server deployments handling untrusted URLs. See contributing/secure-url-handling.md.

  • Updated dependencies [4be62c1]

  • Updated dependencies [7805e4a]

  • Updated dependencies [cd12954]

    • @​ai-sdk/provider-utils@​5.0.9
    • @​ai-sdk/openai-compatible@​3.0.9

4.0.11

Patch Changes

  • e193290: Add connectToWebSocket to @ai-sdk/provider-utils: a shared WebSocket connect layer (constructor resolution, header hygiene, abort wiring, message decoding) analogous to postToApi for HTTP. The openai and xai streaming transcription models now use it instead of hand-rolled connects. For openai and xai this also means WebSocket constructor failures now surface as stream errors instead of throwing synchronously from doStream, an already-aborted signal no longer constructs a socket, and the caller's audio stream is cancelled on pre-open failures. Messages are processed in order with close handling deferred behind pending frames, audio send loops apply backpressure via the socket's bufferedAmount, and failed sends cancel the caller's audio stream.
  • e193290: Strip undefined header values before the streaming transcription WebSocket constructor (header-capable implementations like ws throw on undefined values).
  • e193290: Fix streaming transcription stream parts against the live xAI STT API: transcript-final was emitted for every is_final: true event, but xAI re-sends the finalized text with speech_final: false before the speech_final: true event (duplicating finals) and also finalizes fragments whose text the eventual speech_final event merges and re-punctuates (later-revised finals). transcript-final is now only emitted on speech_final: true; finalized fragments surface as transcript-partial. Additionally, xAI's transcript.done event arrives with an empty text, which produced an empty finish.text and made experimental_streamTranscribe throw NoTranscriptGeneratedError despite a full transcript having streamed — the finish text now falls back to the accumulated finalized utterances (plus any trailing unfinalized text).
  • Updated dependencies [e193290]
    • @​ai-sdk/provider-utils@​5.0.8
    • @​ai-sdk/openai-compatible@​3.0.8

4.0.10

Patch Changes

... (truncated)

Commits

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Jul 18, 2026
@dependabot
dependabot Bot requested a review from crynta as a code owner July 18, 2026 11:01
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Jul 18, 2026
Bumps [@ai-sdk/xai](https://github.com/vercel/ai/tree/HEAD/packages/xai) from 3.0.103 to 4.0.14.
- [Release notes](https://github.com/vercel/ai/releases)
- [Changelog](https://github.com/vercel/ai/blob/main/packages/xai/CHANGELOG.md)
- [Commits](https://github.com/vercel/ai/commits/@ai-sdk/xai@4.0.14/packages/xai)

---
updated-dependencies:
- dependency-name: "@ai-sdk/xai"
  dependency-version: 4.0.13
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot changed the title build(deps): bump @ai-sdk/xai from 3.0.103 to 4.0.13 build(deps): bump @ai-sdk/xai from 3.0.103 to 4.0.14 Jul 19, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/ai-sdk/xai-4.0.13 branch from 0069e65 to daaf857 Compare July 19, 2026 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants