@ai-sdk/xai
Advanced tools
+13
-0
| # @ai-sdk/xai | ||
| ## 3.0.104 | ||
| ### Patch Changes | ||
| - 327642b: fix: more precise default message for tool execution denial | ||
| - 19eece6: fix reasoning text extraction from content in responses doGenerate | ||
| - Updated dependencies [4d4e176] | ||
| - Updated dependencies [bef93ae] | ||
| - Updated dependencies [d559de9] | ||
| - Updated dependencies [327642b] | ||
| - @ai-sdk/openai-compatible@2.0.58 | ||
| - @ai-sdk/provider-utils@4.0.37 | ||
| ## 3.0.103 | ||
@@ -4,0 +17,0 @@ |
+3
-3
| { | ||
| "name": "@ai-sdk/xai", | ||
| "version": "3.0.103", | ||
| "version": "3.0.104", | ||
| "license": "Apache-2.0", | ||
@@ -32,5 +32,5 @@ "sideEffects": false, | ||
| "dependencies": { | ||
| "@ai-sdk/openai-compatible": "2.0.57", | ||
| "@ai-sdk/openai-compatible": "2.0.58", | ||
| "@ai-sdk/provider": "3.0.13", | ||
| "@ai-sdk/provider-utils": "4.0.36" | ||
| "@ai-sdk/provider-utils": "4.0.37" | ||
| }, | ||
@@ -37,0 +37,0 @@ "devDependencies": { |
@@ -116,3 +116,3 @@ import { | ||
| case 'execution-denied': | ||
| contentValue = output.reason ?? 'Tool execution denied.'; | ||
| contentValue = output.reason ?? 'Tool call execution denied.'; | ||
| break; | ||
@@ -119,0 +119,0 @@ case 'content': |
@@ -228,2 +228,5 @@ import { z } from 'zod/v4'; | ||
| summary: z.array(reasoningSummaryPartSchema), | ||
| content: z | ||
| .array(z.object({ type: z.string(), text: z.string() })) | ||
| .nullish(), | ||
| status: z.string(), | ||
@@ -230,0 +233,0 @@ encrypted_content: z.string().nullish(), |
@@ -370,7 +370,10 @@ import type { | ||
| case 'reasoning': { | ||
| const summaryTexts = part.summary | ||
| .map(s => s.text) | ||
| .filter(text => text && text.length > 0); | ||
| const texts = | ||
| part.summary.length > 0 | ||
| ? part.summary.map(s => s.text) | ||
| : (part.content ?? []).map(c => c.text); | ||
| const reasoningText = summaryTexts.join(''); | ||
| const reasoningText = texts | ||
| .filter(text => text && text.length > 0) | ||
| .join(''); | ||
@@ -377,0 +380,0 @@ // condition changed here since encrypted content can now come with empty reasoning text |
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
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
921077
0.19%11343
0.07%+ Added
+ Added
- Removed
- Removed