@ai-sdk/anthropic 2.0.63 → 2.0.64

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
+ ## 2.0.64
4
+
5
+ ### Patch Changes
6
+
7
+ - 9d5c1b1: fix(provider/anthropic): minor follow up to support no-op speed standard
8
+
3
9
  ## 2.0.63
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -161,7 +161,10 @@ declare const anthropicProviderOptions: z.ZodObject<{
161
161
  high: "high";
162
162
  max: "max";
163
163
  }>>;
164
- speed: z.ZodOptional<z.ZodLiteral<"fast">>;
164
+ speed: z.ZodOptional<z.ZodEnum<{
165
+ fast: "fast";
166
+ standard: "standard";
167
+ }>>;
165
168
  contextManagement: z.ZodOptional<z.ZodObject<{
166
169
  edits: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
167
170
  type: z.ZodLiteral<"clear_tool_uses_20250919">;
package/dist/index.d.ts CHANGED
@@ -161,7 +161,10 @@ declare const anthropicProviderOptions: z.ZodObject<{
161
161
  high: "high";
162
162
  max: "max";
163
163
  }>>;
164
- speed: z.ZodOptional<z.ZodLiteral<"fast">>;
164
+ speed: z.ZodOptional<z.ZodEnum<{
165
+ fast: "fast";
166
+ standard: "standard";
167
+ }>>;
165
168
  contextManagement: z.ZodOptional<z.ZodObject<{
166
169
  edits: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
167
170
  type: z.ZodLiteral<"clear_tool_uses_20250919">;
package/dist/index.js CHANGED
@@ -31,7 +31,7 @@ var import_provider4 = require("@ai-sdk/provider");
31
31
  var import_provider_utils20 = require("@ai-sdk/provider-utils");
32
32
 
33
33
  // src/version.ts
34
- var VERSION = true ? "2.0.63" : "0.0.0-test";
34
+ var VERSION = true ? "2.0.64" : "0.0.0-test";
35
35
 
36
36
  // src/anthropic-messages-language-model.ts
37
37
  var import_provider3 = require("@ai-sdk/provider");
@@ -696,7 +696,7 @@ var anthropicProviderOptions = import_v43.z.object({
696
696
  * Enable fast mode for faster inference (2.5x faster output token speeds).
697
697
  * Only supported with claude-opus-4-6.
698
698
  */
699
- speed: import_v43.z.literal("fast").optional(),
699
+ speed: import_v43.z.enum(["fast", "standard"]).optional(),
700
700
  /**
701
701
  * Context management configuration for automatic context window management.
702
702
  * Enables features like automatic compaction and clearing of tool uses/thinking blocks.
@@ -2174,7 +2174,7 @@ var AnthropicMessagesLanguageModel = class {
2174
2174
  if (anthropicOptions == null ? void 0 : anthropicOptions.effort) {
2175
2175
  betas.add("effort-2025-11-24");
2176
2176
  }
2177
- if (anthropicOptions == null ? void 0 : anthropicOptions.speed) {
2177
+ if ((anthropicOptions == null ? void 0 : anthropicOptions.speed) === "fast") {
2178
2178
  betas.add("fast-mode-2026-02-01");
2179
2179
  }
2180
2180
  if (useStructuredOutput) {