@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/internal/index.js
CHANGED
|
@@ -854,7 +854,7 @@ var anthropicLanguageModelOptions = import_v43.z.object({
|
|
|
854
854
|
* Enable fast mode for faster inference (2.5x faster output token speeds).
|
|
855
855
|
* Only supported with claude-opus-4-6.
|
|
856
856
|
*/
|
|
857
|
-
speed: import_v43.z.
|
|
857
|
+
speed: import_v43.z.enum(["fast", "standard"]).optional(),
|
|
858
858
|
contextManagement: import_v43.z.object({
|
|
859
859
|
edits: import_v43.z.array(
|
|
860
860
|
import_v43.z.discriminatedUnion("type", [
|
|
@@ -2814,7 +2814,7 @@ var AnthropicMessagesLanguageModel = class {
|
|
|
2814
2814
|
if (anthropicOptions == null ? void 0 : anthropicOptions.effort) {
|
|
2815
2815
|
betas.add("effort-2025-11-24");
|
|
2816
2816
|
}
|
|
2817
|
-
if (anthropicOptions == null ? void 0 : anthropicOptions.speed) {
|
|
2817
|
+
if ((anthropicOptions == null ? void 0 : anthropicOptions.speed) === "fast") {
|
|
2818
2818
|
betas.add("fast-mode-2026-02-01");
|
|
2819
2819
|
}
|
|
2820
2820
|
if (stream && ((_f = anthropicOptions == null ? void 0 : anthropicOptions.toolStreaming) != null ? _f : true)) {
|