@ai-sdk/anthropic 3.0.68 → 3.0.69
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 +6 -0
- package/dist/index.d.mts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +13 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -1
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +12 -0
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +12 -0
- package/dist/internal/index.mjs.map +1 -1
- package/docs/05-anthropic.mdx +25 -0
- package/package.json +1 -1
- package/src/anthropic-messages-language-model.ts +3 -0
- package/src/anthropic-messages-options.ts +10 -0
package/dist/internal/index.mjs
CHANGED
|
@@ -910,6 +910,15 @@ var anthropicLanguageModelOptions = z3.object({
|
|
|
910
910
|
* Only supported with claude-opus-4-6.
|
|
911
911
|
*/
|
|
912
912
|
speed: z3.enum(["fast", "standard"]).optional(),
|
|
913
|
+
/**
|
|
914
|
+
* Controls where model inference runs for this request.
|
|
915
|
+
*
|
|
916
|
+
* - `"global"`: Inference may run in any available geography (default).
|
|
917
|
+
* - `"us"`: Inference runs only in US-based infrastructure.
|
|
918
|
+
*
|
|
919
|
+
* See https://platform.claude.com/docs/en/build-with-claude/data-residency
|
|
920
|
+
*/
|
|
921
|
+
inferenceGeo: z3.enum(["us", "global"]).optional(),
|
|
913
922
|
/**
|
|
914
923
|
* A set of beta features to enable.
|
|
915
924
|
* Allow a provider to receive the full `betas` set if it needs it.
|
|
@@ -3049,6 +3058,9 @@ var AnthropicMessagesLanguageModel = class {
|
|
|
3049
3058
|
...(anthropicOptions == null ? void 0 : anthropicOptions.speed) && {
|
|
3050
3059
|
speed: anthropicOptions.speed
|
|
3051
3060
|
},
|
|
3061
|
+
...(anthropicOptions == null ? void 0 : anthropicOptions.inferenceGeo) && {
|
|
3062
|
+
inference_geo: anthropicOptions.inferenceGeo
|
|
3063
|
+
},
|
|
3052
3064
|
...(anthropicOptions == null ? void 0 : anthropicOptions.cacheControl) && {
|
|
3053
3065
|
cache_control: anthropicOptions.cacheControl
|
|
3054
3066
|
},
|