@ai-sdk/amazon-bedrock 3.1.0-beta.2 → 3.1.0-beta.4
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 +21 -0
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @ai-sdk/amazon-bedrock
|
|
2
2
|
|
|
3
|
+
## 3.1.0-beta.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 4616b86: chore: update zod peer depenedency version
|
|
8
|
+
- Updated dependencies [4616b86]
|
|
9
|
+
- @ai-sdk/provider-utils@3.1.0-beta.4
|
|
10
|
+
- @ai-sdk/anthropic@2.1.0-beta.4
|
|
11
|
+
|
|
12
|
+
## 3.1.0-beta.3
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- ed329cb: feat: `Provider-V3`
|
|
17
|
+
- 522f6b8: feat: `ImageModelV3`
|
|
18
|
+
- Updated dependencies [ed329cb]
|
|
19
|
+
- Updated dependencies [522f6b8]
|
|
20
|
+
- @ai-sdk/anthropic@2.1.0-beta.3
|
|
21
|
+
- @ai-sdk/provider@2.1.0-beta.2
|
|
22
|
+
- @ai-sdk/provider-utils@3.1.0-beta.3
|
|
23
|
+
|
|
3
24
|
## 3.1.0-beta.2
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ProviderV3, LanguageModelV2, EmbeddingModelV3, ImageModelV3 } from '@ai-sdk/provider';
|
|
2
2
|
import { FetchFunction } from '@ai-sdk/provider-utils';
|
|
3
3
|
import { anthropicTools } from '@ai-sdk/anthropic/internal';
|
|
4
4
|
import { z } from 'zod/v4';
|
|
@@ -91,18 +91,18 @@ interface AmazonBedrockProviderSettings {
|
|
|
91
91
|
credentialProvider?: () => PromiseLike<Omit<BedrockCredentials, 'region'>>;
|
|
92
92
|
generateId?: () => string;
|
|
93
93
|
}
|
|
94
|
-
interface AmazonBedrockProvider extends
|
|
94
|
+
interface AmazonBedrockProvider extends ProviderV3 {
|
|
95
95
|
(modelId: BedrockChatModelId): LanguageModelV2;
|
|
96
96
|
languageModel(modelId: BedrockChatModelId): LanguageModelV2;
|
|
97
97
|
embedding(modelId: BedrockEmbeddingModelId): EmbeddingModelV3<string>;
|
|
98
98
|
/**
|
|
99
99
|
Creates a model for image generation.
|
|
100
100
|
*/
|
|
101
|
-
image(modelId: BedrockImageModelId):
|
|
101
|
+
image(modelId: BedrockImageModelId): ImageModelV3;
|
|
102
102
|
/**
|
|
103
103
|
Creates a model for image generation.
|
|
104
104
|
*/
|
|
105
|
-
imageModel(modelId: BedrockImageModelId):
|
|
105
|
+
imageModel(modelId: BedrockImageModelId): ImageModelV3;
|
|
106
106
|
/**
|
|
107
107
|
Anthropic-specific tools that can be used with Anthropic models on Bedrock.
|
|
108
108
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ProviderV3, LanguageModelV2, EmbeddingModelV3, ImageModelV3 } from '@ai-sdk/provider';
|
|
2
2
|
import { FetchFunction } from '@ai-sdk/provider-utils';
|
|
3
3
|
import { anthropicTools } from '@ai-sdk/anthropic/internal';
|
|
4
4
|
import { z } from 'zod/v4';
|
|
@@ -91,18 +91,18 @@ interface AmazonBedrockProviderSettings {
|
|
|
91
91
|
credentialProvider?: () => PromiseLike<Omit<BedrockCredentials, 'region'>>;
|
|
92
92
|
generateId?: () => string;
|
|
93
93
|
}
|
|
94
|
-
interface AmazonBedrockProvider extends
|
|
94
|
+
interface AmazonBedrockProvider extends ProviderV3 {
|
|
95
95
|
(modelId: BedrockChatModelId): LanguageModelV2;
|
|
96
96
|
languageModel(modelId: BedrockChatModelId): LanguageModelV2;
|
|
97
97
|
embedding(modelId: BedrockEmbeddingModelId): EmbeddingModelV3<string>;
|
|
98
98
|
/**
|
|
99
99
|
Creates a model for image generation.
|
|
100
100
|
*/
|
|
101
|
-
image(modelId: BedrockImageModelId):
|
|
101
|
+
image(modelId: BedrockImageModelId): ImageModelV3;
|
|
102
102
|
/**
|
|
103
103
|
Creates a model for image generation.
|
|
104
104
|
*/
|
|
105
|
-
imageModel(modelId: BedrockImageModelId):
|
|
105
|
+
imageModel(modelId: BedrockImageModelId): ImageModelV3;
|
|
106
106
|
/**
|
|
107
107
|
Anthropic-specific tools that can be used with Anthropic models on Bedrock.
|
|
108
108
|
*/
|
package/dist/index.js
CHANGED
|
@@ -30,7 +30,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
30
30
|
var import_provider_utils8 = require("@ai-sdk/provider-utils");
|
|
31
31
|
|
|
32
32
|
// src/version.ts
|
|
33
|
-
var VERSION = true ? "3.1.0-beta.
|
|
33
|
+
var VERSION = true ? "3.1.0-beta.4" : "0.0.0-test";
|
|
34
34
|
|
|
35
35
|
// src/bedrock-provider.ts
|
|
36
36
|
var import_internal2 = require("@ai-sdk/anthropic/internal");
|
|
@@ -1385,7 +1385,7 @@ var BedrockImageModel = class {
|
|
|
1385
1385
|
constructor(modelId, config) {
|
|
1386
1386
|
this.modelId = modelId;
|
|
1387
1387
|
this.config = config;
|
|
1388
|
-
this.specificationVersion = "
|
|
1388
|
+
this.specificationVersion = "v3";
|
|
1389
1389
|
this.provider = "amazon-bedrock";
|
|
1390
1390
|
}
|
|
1391
1391
|
get maxImagesPerCall() {
|