@ai-sdk/anthropic 3.0.67 → 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 +12 -0
- package/README.md +2 -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.js
CHANGED
|
@@ -923,6 +923,15 @@ var anthropicLanguageModelOptions = import_v43.z.object({
|
|
|
923
923
|
* Only supported with claude-opus-4-6.
|
|
924
924
|
*/
|
|
925
925
|
speed: import_v43.z.enum(["fast", "standard"]).optional(),
|
|
926
|
+
/**
|
|
927
|
+
* Controls where model inference runs for this request.
|
|
928
|
+
*
|
|
929
|
+
* - `"global"`: Inference may run in any available geography (default).
|
|
930
|
+
* - `"us"`: Inference runs only in US-based infrastructure.
|
|
931
|
+
*
|
|
932
|
+
* See https://platform.claude.com/docs/en/build-with-claude/data-residency
|
|
933
|
+
*/
|
|
934
|
+
inferenceGeo: import_v43.z.enum(["us", "global"]).optional(),
|
|
926
935
|
/**
|
|
927
936
|
* A set of beta features to enable.
|
|
928
937
|
* Allow a provider to receive the full `betas` set if it needs it.
|
|
@@ -3020,6 +3029,9 @@ var AnthropicMessagesLanguageModel = class {
|
|
|
3020
3029
|
...(anthropicOptions == null ? void 0 : anthropicOptions.speed) && {
|
|
3021
3030
|
speed: anthropicOptions.speed
|
|
3022
3031
|
},
|
|
3032
|
+
...(anthropicOptions == null ? void 0 : anthropicOptions.inferenceGeo) && {
|
|
3033
|
+
inference_geo: anthropicOptions.inferenceGeo
|
|
3034
|
+
},
|
|
3023
3035
|
...(anthropicOptions == null ? void 0 : anthropicOptions.cacheControl) && {
|
|
3024
3036
|
cache_control: anthropicOptions.cacheControl
|
|
3025
3037
|
},
|