@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/index.mjs
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "@ai-sdk/provider-utils";
|
|
13
13
|
|
|
14
14
|
// src/version.ts
|
|
15
|
-
var VERSION = true ? "3.0.
|
|
15
|
+
var VERSION = true ? "3.0.69" : "0.0.0-test";
|
|
16
16
|
|
|
17
17
|
// src/anthropic-messages-language-model.ts
|
|
18
18
|
import {
|
|
@@ -926,6 +926,15 @@ var anthropicLanguageModelOptions = z3.object({
|
|
|
926
926
|
* Only supported with claude-opus-4-6.
|
|
927
927
|
*/
|
|
928
928
|
speed: z3.enum(["fast", "standard"]).optional(),
|
|
929
|
+
/**
|
|
930
|
+
* Controls where model inference runs for this request.
|
|
931
|
+
*
|
|
932
|
+
* - `"global"`: Inference may run in any available geography (default).
|
|
933
|
+
* - `"us"`: Inference runs only in US-based infrastructure.
|
|
934
|
+
*
|
|
935
|
+
* See https://platform.claude.com/docs/en/build-with-claude/data-residency
|
|
936
|
+
*/
|
|
937
|
+
inferenceGeo: z3.enum(["us", "global"]).optional(),
|
|
929
938
|
/**
|
|
930
939
|
* A set of beta features to enable.
|
|
931
940
|
* Allow a provider to receive the full `betas` set if it needs it.
|
|
@@ -3065,6 +3074,9 @@ var AnthropicMessagesLanguageModel = class {
|
|
|
3065
3074
|
...(anthropicOptions == null ? void 0 : anthropicOptions.speed) && {
|
|
3066
3075
|
speed: anthropicOptions.speed
|
|
3067
3076
|
},
|
|
3077
|
+
...(anthropicOptions == null ? void 0 : anthropicOptions.inferenceGeo) && {
|
|
3078
|
+
inference_geo: anthropicOptions.inferenceGeo
|
|
3079
|
+
},
|
|
3068
3080
|
...(anthropicOptions == null ? void 0 : anthropicOptions.cacheControl) && {
|
|
3069
3081
|
cache_control: anthropicOptions.cacheControl
|
|
3070
3082
|
},
|