Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

@ai-sdk/xai

Package Overview
Dependencies
Maintainers
3
Versions
307
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ai-sdk/xai - npm Package Compare versions

Comparing version
2.0.58
to
2.0.59
+10
-0
CHANGELOG.md
# @ai-sdk/xai
## 2.0.59
### Patch Changes
- 93fff75: Add support for `response.function_call_arguments.delta` and `response.function_call_arguments.done` streaming events in the xAI Responses API provider.
Previously, xAI Grok models using function tools via the Responses API would fail with `AI_TypeValidationError` because these standard Responses API events were missing from the Zod schema and stream handler. Function call arguments are now streamed incrementally via `tool-input-delta` events, and the final `tool-call` is emitted only after all arguments are received.
Includes unit test for function call argument streaming and an example at `examples/ai-core/src/stream-text/xai-responses-function-call.ts`.
## 2.0.58

@@ -4,0 +14,0 @@

+3
-3
{
"name": "@ai-sdk/xai",
"version": "2.0.58",
"version": "2.0.59",
"license": "Apache-2.0",

@@ -23,4 +23,4 @@ "sideEffects": false,

"@ai-sdk/openai-compatible": "1.0.32",
"@ai-sdk/provider": "2.0.1",
"@ai-sdk/provider-utils": "3.0.20"
"@ai-sdk/provider-utils": "3.0.20",
"@ai-sdk/provider": "2.0.1"
},

@@ -27,0 +27,0 @@ "devDependencies": {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display