@ai-sdk/amazon-bedrock 3.1.0-beta.5 → 3.1.0-beta.6
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 +12 -0
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- 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,17 @@
|
|
|
1
1
|
# @ai-sdk/amazon-bedrock
|
|
2
2
|
|
|
3
|
+
## 3.1.0-beta.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 8dac895: feat: `LanguageModelV3`
|
|
8
|
+
- 10c1322: fix: moved dependency `@ai-sdk/test-server` to devDependencies
|
|
9
|
+
- Updated dependencies [8dac895]
|
|
10
|
+
- Updated dependencies [10c1322]
|
|
11
|
+
- @ai-sdk/provider-utils@3.1.0-beta.5
|
|
12
|
+
- @ai-sdk/anthropic@2.1.0-beta.6
|
|
13
|
+
- @ai-sdk/provider@2.1.0-beta.3
|
|
14
|
+
|
|
3
15
|
## 3.1.0-beta.5
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProviderV3,
|
|
1
|
+
import { ProviderV3, LanguageModelV3, 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';
|
|
@@ -92,8 +92,8 @@ interface AmazonBedrockProviderSettings {
|
|
|
92
92
|
generateId?: () => string;
|
|
93
93
|
}
|
|
94
94
|
interface AmazonBedrockProvider extends ProviderV3 {
|
|
95
|
-
(modelId: BedrockChatModelId):
|
|
96
|
-
languageModel(modelId: BedrockChatModelId):
|
|
95
|
+
(modelId: BedrockChatModelId): LanguageModelV3;
|
|
96
|
+
languageModel(modelId: BedrockChatModelId): LanguageModelV3;
|
|
97
97
|
embedding(modelId: BedrockEmbeddingModelId): EmbeddingModelV3<string>;
|
|
98
98
|
/**
|
|
99
99
|
Creates a model for image generation.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProviderV3,
|
|
1
|
+
import { ProviderV3, LanguageModelV3, 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';
|
|
@@ -92,8 +92,8 @@ interface AmazonBedrockProviderSettings {
|
|
|
92
92
|
generateId?: () => string;
|
|
93
93
|
}
|
|
94
94
|
interface AmazonBedrockProvider extends ProviderV3 {
|
|
95
|
-
(modelId: BedrockChatModelId):
|
|
96
|
-
languageModel(modelId: BedrockChatModelId):
|
|
95
|
+
(modelId: BedrockChatModelId): LanguageModelV3;
|
|
96
|
+
languageModel(modelId: BedrockChatModelId): LanguageModelV3;
|
|
97
97
|
embedding(modelId: BedrockEmbeddingModelId): EmbeddingModelV3<string>;
|
|
98
98
|
/**
|
|
99
99
|
Creates a model for image generation.
|
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.6" : "0.0.0-test";
|
|
34
34
|
|
|
35
35
|
// src/bedrock-provider.ts
|
|
36
36
|
var import_internal2 = require("@ai-sdk/anthropic/internal");
|
|
@@ -638,7 +638,7 @@ var BedrockChatLanguageModel = class {
|
|
|
638
638
|
constructor(modelId, config) {
|
|
639
639
|
this.modelId = modelId;
|
|
640
640
|
this.config = config;
|
|
641
|
-
this.specificationVersion = "
|
|
641
|
+
this.specificationVersion = "v3";
|
|
642
642
|
this.provider = "amazon-bedrock";
|
|
643
643
|
this.supportedUrls = {
|
|
644
644
|
// no supported urls for bedrock
|