@ai-sdk/anthropic 2.0.75 → 2.0.76

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,11 @@
1
1
  # @ai-sdk/anthropic
2
2
 
3
+ ## 2.0.76
4
+
5
+ ### Patch Changes
6
+
7
+ - 2fe3997: feat (provider/anthropic): add support for inference_geo provider option
8
+
3
9
  ## 2.0.75
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -178,6 +178,10 @@ declare const anthropicProviderOptions: z.ZodObject<{
178
178
  fast: "fast";
179
179
  standard: "standard";
180
180
  }>>;
181
+ inferenceGeo: z.ZodOptional<z.ZodEnum<{
182
+ us: "us";
183
+ global: "global";
184
+ }>>;
181
185
  contextManagement: z.ZodOptional<z.ZodObject<{
182
186
  edits: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
183
187
  type: z.ZodLiteral<"clear_tool_uses_20250919">;
package/dist/index.d.ts CHANGED
@@ -178,6 +178,10 @@ declare const anthropicProviderOptions: z.ZodObject<{
178
178
  fast: "fast";
179
179
  standard: "standard";
180
180
  }>>;
181
+ inferenceGeo: z.ZodOptional<z.ZodEnum<{
182
+ us: "us";
183
+ global: "global";
184
+ }>>;
181
185
  contextManagement: z.ZodOptional<z.ZodObject<{
182
186
  edits: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
183
187
  type: z.ZodLiteral<"clear_tool_uses_20250919">;
package/dist/index.js CHANGED
@@ -31,7 +31,7 @@ var import_provider4 = require("@ai-sdk/provider");
31
31
  var import_provider_utils21 = require("@ai-sdk/provider-utils");
32
32
 
33
33
  // src/version.ts
34
- var VERSION = true ? "2.0.75" : "0.0.0-test";
34
+ var VERSION = true ? "2.0.76" : "0.0.0-test";
35
35
 
36
36
  // src/anthropic-messages-language-model.ts
37
37
  var import_provider3 = require("@ai-sdk/provider");
@@ -729,6 +729,15 @@ var anthropicProviderOptions = import_v43.z.object({
729
729
  * Only supported with claude-opus-4-6.
730
730
  */
731
731
  speed: import_v43.z.enum(["fast", "standard"]).optional(),
732
+ /**
733
+ * Controls where model inference runs for this request.
734
+ *
735
+ * - `"global"`: Inference may run in any available geography (default).
736
+ * - `"us"`: Inference runs only in US-based infrastructure.
737
+ *
738
+ * See https://platform.claude.com/docs/en/build-with-claude/data-residency
739
+ */
740
+ inferenceGeo: import_v43.z.enum(["us", "global"]).optional(),
732
741
  /**
733
742
  * Context management configuration for automatic context window management.
734
743
  * Enables features like automatic compaction and clearing of tool uses/thinking blocks.
@@ -2140,6 +2149,9 @@ var AnthropicMessagesLanguageModel = class {
2140
2149
  ...(anthropicOptions == null ? void 0 : anthropicOptions.speed) && {
2141
2150
  speed: anthropicOptions.speed
2142
2151
  },
2152
+ ...(anthropicOptions == null ? void 0 : anthropicOptions.inferenceGeo) && {
2153
+ inference_geo: anthropicOptions.inferenceGeo
2154
+ },
2143
2155
  ...(anthropicOptions == null ? void 0 : anthropicOptions.cacheControl) && {
2144
2156
  cache_control: anthropicOptions.cacheControl
2145
2157
  },