@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/dist/index.mjs CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  } from "@ai-sdk/provider-utils";
12
12
 
13
13
  // src/version.ts
14
- var VERSION = true ? "2.0.75" : "0.0.0-test";
14
+ var VERSION = true ? "2.0.76" : "0.0.0-test";
15
15
 
16
16
  // src/anthropic-messages-language-model.ts
17
17
  import {
@@ -724,6 +724,15 @@ var anthropicProviderOptions = z3.object({
724
724
  * Only supported with claude-opus-4-6.
725
725
  */
726
726
  speed: z3.enum(["fast", "standard"]).optional(),
727
+ /**
728
+ * Controls where model inference runs for this request.
729
+ *
730
+ * - `"global"`: Inference may run in any available geography (default).
731
+ * - `"us"`: Inference runs only in US-based infrastructure.
732
+ *
733
+ * See https://platform.claude.com/docs/en/build-with-claude/data-residency
734
+ */
735
+ inferenceGeo: z3.enum(["us", "global"]).optional(),
727
736
  /**
728
737
  * Context management configuration for automatic context window management.
729
738
  * Enables features like automatic compaction and clearing of tool uses/thinking blocks.
@@ -2159,6 +2168,9 @@ var AnthropicMessagesLanguageModel = class {
2159
2168
  ...(anthropicOptions == null ? void 0 : anthropicOptions.speed) && {
2160
2169
  speed: anthropicOptions.speed
2161
2170
  },
2171
+ ...(anthropicOptions == null ? void 0 : anthropicOptions.inferenceGeo) && {
2172
+ inference_geo: anthropicOptions.inferenceGeo
2173
+ },
2162
2174
  ...(anthropicOptions == null ? void 0 : anthropicOptions.cacheControl) && {
2163
2175
  cache_control: anthropicOptions.cacheControl
2164
2176
  },