@ai-sdk/anthropic 3.0.42 → 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 +13 -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/docs/05-anthropic.mdx +25 -0
- package/package.json +2 -2
- package/src/anthropic-messages-api.ts +2 -0
- package/src/anthropic-messages-language-model.ts +1 -1
- package/src/anthropic-messages-options.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
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
|
+
|
|
9
|
+
## 3.0.43
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [4024a3a]
|
|
14
|
+
- @ai-sdk/provider-utils@4.0.15
|
|
15
|
+
|
|
3
16
|
## 3.0.42
|
|
4
17
|
|
|
5
18
|
### 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.
|
|
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.
|
|
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.
|
|
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.
|
|
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)) {
|