@ai-sdk/anthropic 3.0.46 → 3.0.47

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @ai-sdk/anthropic
2
2
 
3
+ ## 3.0.47
4
+
5
+ ### Patch Changes
6
+
7
+ - 17978c6: Pass `cacheControl` provider option as top-level `cache_control` in Anthropic API request body to support automatic caching.
8
+
3
9
  ## 3.0.46
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -32,7 +32,7 @@ var import_provider4 = require("@ai-sdk/provider");
32
32
  var import_provider_utils23 = require("@ai-sdk/provider-utils");
33
33
 
34
34
  // src/version.ts
35
- var VERSION = true ? "3.0.46" : "0.0.0-test";
35
+ var VERSION = true ? "3.0.47" : "0.0.0-test";
36
36
 
37
37
  // src/anthropic-messages-language-model.ts
38
38
  var import_provider3 = require("@ai-sdk/provider");
@@ -2648,6 +2648,9 @@ var AnthropicMessagesLanguageModel = class {
2648
2648
  ...(anthropicOptions == null ? void 0 : anthropicOptions.speed) && {
2649
2649
  speed: anthropicOptions.speed
2650
2650
  },
2651
+ ...(anthropicOptions == null ? void 0 : anthropicOptions.cacheControl) && {
2652
+ cache_control: anthropicOptions.cacheControl
2653
+ },
2651
2654
  // structured output:
2652
2655
  ...useStructuredOutput && (responseFormat == null ? void 0 : responseFormat.type) === "json" && responseFormat.schema != null && {
2653
2656
  output_format: {