@ai-sdk/anthropic 4.0.0-beta.2 → 4.0.0-beta.3
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 +6 -6
- package/dist/index.d.ts +6 -6
- 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.d.mts +11 -11
- package/dist/internal/index.d.ts +11 -11
- package/dist/internal/index.js +1 -1
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +1 -1
- package/dist/internal/index.mjs.map +1 -1
- package/docs/05-anthropic.mdx +45 -4
- package/package.json +1 -1
- package/src/anthropic-messages-language-model.ts +34 -34
- package/src/anthropic-prepare-tools.ts +6 -6
- package/src/anthropic-provider.ts +8 -8
- package/src/convert-anthropic-messages-usage.ts +2 -2
- package/src/convert-to-anthropic-messages-prompt.ts +17 -17
- package/src/get-cache-control.ts +5 -5
- package/src/map-anthropic-stop-reason.ts +2 -2
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 ? "4.0.0-beta.
|
|
15
|
+
var VERSION = true ? "4.0.0-beta.3" : "0.0.0-test";
|
|
16
16
|
|
|
17
17
|
// src/anthropic-messages-language-model.ts
|
|
18
18
|
import {
|
|
@@ -2867,7 +2867,7 @@ function createCitationSource(citation, citationDocuments, generateId3) {
|
|
|
2867
2867
|
}
|
|
2868
2868
|
var AnthropicMessagesLanguageModel = class {
|
|
2869
2869
|
constructor(modelId, config) {
|
|
2870
|
-
this.specificationVersion = "
|
|
2870
|
+
this.specificationVersion = "v4";
|
|
2871
2871
|
var _a;
|
|
2872
2872
|
this.modelId = modelId;
|
|
2873
2873
|
this.config = config;
|
|
@@ -5189,7 +5189,7 @@ function createAnthropic(options = {}) {
|
|
|
5189
5189
|
}
|
|
5190
5190
|
return createChatModel(modelId);
|
|
5191
5191
|
};
|
|
5192
|
-
provider.specificationVersion = "
|
|
5192
|
+
provider.specificationVersion = "v4";
|
|
5193
5193
|
provider.languageModel = createChatModel;
|
|
5194
5194
|
provider.chat = createChatModel;
|
|
5195
5195
|
provider.messages = createChatModel;
|