@ai-sdk/anthropic 4.0.40 → 4.0.42

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,21 @@
1
1
  # @ai-sdk/anthropic
2
2
 
3
+ ## 4.0.42
4
+
5
+ ### Patch Changes
6
+
7
+ - 591d25b: feat: add batch completion webhooks. `experimental_startTextBatch` accepts a `webhookUrl`, and the gateway provider registers it through the batch `callbackUrl` contract and exports typed async-job metadata. Direct Anthropic and OpenAI batch providers return an unsupported warning when the option is provided.
8
+ - Updated dependencies [591d25b]
9
+ - @ai-sdk/provider@4.0.8
10
+ - @ai-sdk/provider-utils@5.0.30
11
+
12
+ ## 4.0.41
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies [b74971f]
17
+ - @ai-sdk/provider-utils@5.0.29
18
+
3
19
  ## 4.0.40
4
20
 
5
21
  ### Patch Changes
package/dist/index.js CHANGED
@@ -5918,7 +5918,8 @@ var AnthropicMessagesBatchLanguageModel = class _AnthropicMessagesBatchLanguageM
5918
5918
  requests,
5919
5919
  providerOptions,
5920
5920
  headers,
5921
- abortSignal
5921
+ abortSignal,
5922
+ webhookUrl
5922
5923
  }) {
5923
5924
  validateRequestIds(requests);
5924
5925
  const explicitBatchBetas = new Set(
@@ -5929,7 +5930,15 @@ var AnthropicMessagesBatchLanguageModel = class _AnthropicMessagesBatchLanguageM
5929
5930
  );
5930
5931
  const batchBetas = new Set(explicitBatchBetas);
5931
5932
  const preparedRequests = [];
5932
- const batchWarnings = [];
5933
+ const batchWarnings = webhookUrl == null ? [] : [
5934
+ {
5935
+ warning: {
5936
+ type: "unsupported",
5937
+ feature: "webhookUrl",
5938
+ details: "The Anthropic Message Batches API does not support completion webhooks."
5939
+ }
5940
+ }
5941
+ ];
5933
5942
  for (const request of requests) {
5934
5943
  const requestBetas = await getAnthropicBatchProviderBetas({
5935
5944
  provider: this.config.provider,
@@ -7131,7 +7140,7 @@ var AnthropicSkills = class {
7131
7140
  };
7132
7141
 
7133
7142
  // src/version.ts
7134
- var VERSION = true ? "4.0.40" : "0.0.0-test";
7143
+ var VERSION = true ? "4.0.42" : "0.0.0-test";
7135
7144
 
7136
7145
  // src/anthropic-provider.ts
7137
7146
  var ANTHROPIC_API_URL = "https://api.anthropic.com";