@ai-sdk/xai 3.0.103 → 3.0.105

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @ai-sdk/xai
2
2
 
3
+ ## 3.0.105
4
+
5
+ ### Patch Changes
6
+
7
+ - c00849a: feat: support `imageDetail` provider option on image file parts to control image processing resolution
8
+
9
+ ## 3.0.104
10
+
11
+ ### Patch Changes
12
+
13
+ - 327642b: fix: more precise default message for tool execution denial
14
+ - 19eece6: fix reasoning text extraction from content in responses doGenerate
15
+ - Updated dependencies [4d4e176]
16
+ - Updated dependencies [bef93ae]
17
+ - Updated dependencies [d559de9]
18
+ - Updated dependencies [327642b]
19
+ - @ai-sdk/openai-compatible@2.0.58
20
+ - @ai-sdk/provider-utils@4.0.37
21
+
3
22
  ## 3.0.103
4
23
 
5
24
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -63,6 +63,15 @@ declare const xaiErrorDataSchema: z.ZodUnion<readonly [z.ZodObject<{
63
63
  }, z.core.$strip>]>;
64
64
  type XaiErrorData = z.infer<typeof xaiErrorDataSchema>;
65
65
 
66
+ declare const xaiFilePartProviderOptions: z.ZodObject<{
67
+ imageDetail: z.ZodOptional<z.ZodEnum<{
68
+ low: "low";
69
+ high: "high";
70
+ auto: "auto";
71
+ }>>;
72
+ }, z.core.$strip>;
73
+ type XaiFilePartProviderOptions = z.infer<typeof xaiFilePartProviderOptions>;
74
+
66
75
  type XaiResponsesModelId = 'grok-4.3' | 'grok-4.20-0309-reasoning' | 'grok-4.20-0309-non-reasoning' | 'grok-4.20-multi-agent-0309' | 'grok-build-0.1' | (string & {});
67
76
  /**
68
77
  * @see https://docs.x.ai/docs/api-reference#create-new-response
@@ -443,4 +452,4 @@ declare const xai: XaiProvider;
443
452
 
444
453
  declare const VERSION: string;
445
454
 
446
- export { VERSION, type XaiErrorData, type XaiImageModelOptions, type XaiImageModelOptions as XaiImageProviderOptions, type XaiLanguageModelChatOptions, type XaiLanguageModelResponsesOptions, type XaiProvider, type XaiLanguageModelChatOptions as XaiProviderOptions, type XaiProviderSettings, type XaiLanguageModelResponsesOptions as XaiResponsesProviderOptions, type XaiVideoModelId, type XaiVideoModelOptions, type XaiVideoModelOptions as XaiVideoProviderOptions, codeExecution, createXai, mcpServer, viewImage, viewXVideo, webSearch, xSearch, xai, xaiTools };
455
+ export { VERSION, type XaiErrorData, type XaiFilePartProviderOptions, type XaiImageModelOptions, type XaiImageModelOptions as XaiImageProviderOptions, type XaiLanguageModelChatOptions, type XaiLanguageModelResponsesOptions, type XaiProvider, type XaiLanguageModelChatOptions as XaiProviderOptions, type XaiProviderSettings, type XaiLanguageModelResponsesOptions as XaiResponsesProviderOptions, type XaiVideoModelId, type XaiVideoModelOptions, type XaiVideoModelOptions as XaiVideoProviderOptions, codeExecution, createXai, mcpServer, viewImage, viewXVideo, webSearch, xSearch, xai, xaiTools };
package/dist/index.d.ts CHANGED
@@ -63,6 +63,15 @@ declare const xaiErrorDataSchema: z.ZodUnion<readonly [z.ZodObject<{
63
63
  }, z.core.$strip>]>;
64
64
  type XaiErrorData = z.infer<typeof xaiErrorDataSchema>;
65
65
 
66
+ declare const xaiFilePartProviderOptions: z.ZodObject<{
67
+ imageDetail: z.ZodOptional<z.ZodEnum<{
68
+ low: "low";
69
+ high: "high";
70
+ auto: "auto";
71
+ }>>;
72
+ }, z.core.$strip>;
73
+ type XaiFilePartProviderOptions = z.infer<typeof xaiFilePartProviderOptions>;
74
+
66
75
  type XaiResponsesModelId = 'grok-4.3' | 'grok-4.20-0309-reasoning' | 'grok-4.20-0309-non-reasoning' | 'grok-4.20-multi-agent-0309' | 'grok-build-0.1' | (string & {});
67
76
  /**
68
77
  * @see https://docs.x.ai/docs/api-reference#create-new-response
@@ -443,4 +452,4 @@ declare const xai: XaiProvider;
443
452
 
444
453
  declare const VERSION: string;
445
454
 
446
- export { VERSION, type XaiErrorData, type XaiImageModelOptions, type XaiImageModelOptions as XaiImageProviderOptions, type XaiLanguageModelChatOptions, type XaiLanguageModelResponsesOptions, type XaiProvider, type XaiLanguageModelChatOptions as XaiProviderOptions, type XaiProviderSettings, type XaiLanguageModelResponsesOptions as XaiResponsesProviderOptions, type XaiVideoModelId, type XaiVideoModelOptions, type XaiVideoModelOptions as XaiVideoProviderOptions, codeExecution, createXai, mcpServer, viewImage, viewXVideo, webSearch, xSearch, xai, xaiTools };
455
+ export { VERSION, type XaiErrorData, type XaiFilePartProviderOptions, type XaiImageModelOptions, type XaiImageModelOptions as XaiImageProviderOptions, type XaiLanguageModelChatOptions, type XaiLanguageModelResponsesOptions, type XaiProvider, type XaiLanguageModelChatOptions as XaiProviderOptions, type XaiProviderSettings, type XaiLanguageModelResponsesOptions as XaiResponsesProviderOptions, type XaiVideoModelId, type XaiVideoModelOptions, type XaiVideoModelOptions as XaiVideoProviderOptions, codeExecution, createXai, mcpServer, viewImage, viewXVideo, webSearch, xSearch, xai, xaiTools };