@ai-sdk/xai
Advanced tools
+10
-0
| # @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
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
500861
1.49%4906
1.15%