@ai-sdk/anthropic 3.0.43 → 3.0.44

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.44
4
+
5
+ ### Patch Changes
6
+
7
+ - 23ac4a3: fix(provider/anthropic): minor follow up to support no-op speed standard
8
+
3
9
  ## 3.0.43
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -174,7 +174,10 @@ declare const anthropicLanguageModelOptions: z.ZodObject<{
174
174
  high: "high";
175
175
  max: "max";
176
176
  }>>;
177
- speed: z.ZodOptional<z.ZodLiteral<"fast">>;
177
+ speed: z.ZodOptional<z.ZodEnum<{
178
+ fast: "fast";
179
+ standard: "standard";
180
+ }>>;
178
181
  contextManagement: z.ZodOptional<z.ZodObject<{
179
182
  edits: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
180
183
  type: z.ZodLiteral<"clear_tool_uses_20250919">;
package/dist/index.d.ts CHANGED
@@ -174,7 +174,10 @@ declare const anthropicLanguageModelOptions: z.ZodObject<{
174
174
  high: "high";
175
175
  max: "max";
176
176
  }>>;
177
- speed: z.ZodOptional<z.ZodLiteral<"fast">>;
177
+ speed: z.ZodOptional<z.ZodEnum<{
178
+ fast: "fast";
179
+ standard: "standard";
180
+ }>>;
178
181
  contextManagement: z.ZodOptional<z.ZodObject<{
179
182
  edits: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
180
183
  type: z.ZodLiteral<"clear_tool_uses_20250919">;
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.43" : "0.0.0-test";
35
+ var VERSION = true ? "3.0.44" : "0.0.0-test";
36
36
 
37
37
  // src/anthropic-messages-language-model.ts
38
38
  var import_provider3 = require("@ai-sdk/provider");
@@ -862,7 +862,7 @@ var anthropicLanguageModelOptions = import_v43.z.object({
862
862
  * Enable fast mode for faster inference (2.5x faster output token speeds).
863
863
  * Only supported with claude-opus-4-6.
864
864
  */
865
- speed: import_v43.z.literal("fast").optional(),
865
+ speed: import_v43.z.enum(["fast", "standard"]).optional(),
866
866
  contextManagement: import_v43.z.object({
867
867
  edits: import_v43.z.array(
868
868
  import_v43.z.discriminatedUnion("type", [
@@ -2822,7 +2822,7 @@ var AnthropicMessagesLanguageModel = class {
2822
2822
  if (anthropicOptions == null ? void 0 : anthropicOptions.effort) {
2823
2823
  betas.add("effort-2025-11-24");
2824
2824
  }
2825
- if (anthropicOptions == null ? void 0 : anthropicOptions.speed) {
2825
+ if ((anthropicOptions == null ? void 0 : anthropicOptions.speed) === "fast") {
2826
2826
  betas.add("fast-mode-2026-02-01");
2827
2827
  }
2828
2828
  if (stream && ((_f = anthropicOptions == null ? void 0 : anthropicOptions.toolStreaming) != null ? _f : true)) {