@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 +6 -0
- package/dist/index.d.mts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +2 -2
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +2 -2
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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) {
|