@ai-sdk/anthropic 4.0.0-beta.23 → 4.0.0-beta.25
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 +13 -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 +2 -2
- package/src/anthropic-messages-language-model.ts +3 -0
- package/src/anthropic-messages-options.ts +10 -0
package/dist/internal/index.mjs
CHANGED
|
@@ -921,6 +921,15 @@ var anthropicLanguageModelOptions = z3.object({
|
|
|
921
921
|
* Only supported with claude-opus-4-6.
|
|
922
922
|
*/
|
|
923
923
|
speed: z3.enum(["fast", "standard"]).optional(),
|
|
924
|
+
/**
|
|
925
|
+
* Controls where model inference runs for this request.
|
|
926
|
+
*
|
|
927
|
+
* - `"global"`: Inference may run in any available geography (default).
|
|
928
|
+
* - `"us"`: Inference runs only in US-based infrastructure.
|
|
929
|
+
*
|
|
930
|
+
* See https://platform.claude.com/docs/en/build-with-claude/data-residency
|
|
931
|
+
*/
|
|
932
|
+
inferenceGeo: z3.enum(["us", "global"]).optional(),
|
|
924
933
|
/**
|
|
925
934
|
* A set of beta features to enable.
|
|
926
935
|
* Allow a provider to receive the full `betas` set if it needs it.
|
|
@@ -3097,6 +3106,9 @@ var AnthropicMessagesLanguageModel = class {
|
|
|
3097
3106
|
...(anthropicOptions == null ? void 0 : anthropicOptions.speed) && {
|
|
3098
3107
|
speed: anthropicOptions.speed
|
|
3099
3108
|
},
|
|
3109
|
+
...(anthropicOptions == null ? void 0 : anthropicOptions.inferenceGeo) && {
|
|
3110
|
+
inference_geo: anthropicOptions.inferenceGeo
|
|
3111
|
+
},
|
|
3100
3112
|
...(anthropicOptions == null ? void 0 : anthropicOptions.cacheControl) && {
|
|
3101
3113
|
cache_control: anthropicOptions.cacheControl
|
|
3102
3114
|
},
|