@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 +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/docs/05-anthropic.mdx +25 -0
- package/package.json +1 -1
- 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/dist/index.mjs
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "@ai-sdk/provider-utils";
|
|
13
13
|
|
|
14
14
|
// src/version.ts
|
|
15
|
-
var VERSION = true ? "3.0.
|
|
15
|
+
var VERSION = true ? "3.0.44" : "0.0.0-test";
|
|
16
16
|
|
|
17
17
|
// src/anthropic-messages-language-model.ts
|
|
18
18
|
import {
|
|
@@ -857,7 +857,7 @@ var anthropicLanguageModelOptions = z3.object({
|
|
|
857
857
|
* Enable fast mode for faster inference (2.5x faster output token speeds).
|
|
858
858
|
* Only supported with claude-opus-4-6.
|
|
859
859
|
*/
|
|
860
|
-
speed: z3.
|
|
860
|
+
speed: z3.enum(["fast", "standard"]).optional(),
|
|
861
861
|
contextManagement: z3.object({
|
|
862
862
|
edits: z3.array(
|
|
863
863
|
z3.discriminatedUnion("type", [
|
|
@@ -2846,7 +2846,7 @@ var AnthropicMessagesLanguageModel = class {
|
|
|
2846
2846
|
if (anthropicOptions == null ? void 0 : anthropicOptions.effort) {
|
|
2847
2847
|
betas.add("effort-2025-11-24");
|
|
2848
2848
|
}
|
|
2849
|
-
if (anthropicOptions == null ? void 0 : anthropicOptions.speed) {
|
|
2849
|
+
if ((anthropicOptions == null ? void 0 : anthropicOptions.speed) === "fast") {
|
|
2850
2850
|
betas.add("fast-mode-2026-02-01");
|
|
2851
2851
|
}
|
|
2852
2852
|
if (stream && ((_f = anthropicOptions == null ? void 0 : anthropicOptions.toolStreaming) != null ? _f : true)) {
|