bedrock-wrapper 1.3.0 → 1.3.1
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/README.md +4 -4
- package/bedrock-models.js +14 -4
- package/example-test.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -96,10 +96,10 @@ Bedrock Wrapper is an npm package that simplifies the integration of existing Op
|
|
|
96
96
|
|
|
97
97
|
| modelName | modelId |
|
|
98
98
|
|----------------|------------------------------------|
|
|
99
|
-
| Llama-3-2-1b | meta.llama3-2-1b-instruct-v1:0
|
|
100
|
-
| Llama-3-2-3b | meta.llama3-2-3b-instruct-v1:0
|
|
101
|
-
| Llama-3-2-11b | meta.llama3-2-11b-instruct-v1:0
|
|
102
|
-
| Llama-3-2-90b | meta.llama3-2-90b-instruct-v1:0
|
|
99
|
+
| Llama-3-2-1b | us.meta.llama3-2-1b-instruct-v1:0 |
|
|
100
|
+
| Llama-3-2-3b | us.meta.llama3-2-3b-instruct-v1:0 |
|
|
101
|
+
| Llama-3-2-11b | us.meta.llama3-2-11b-instruct-v1:0 |
|
|
102
|
+
| Llama-3-2-90b | us.meta.llama3-2-90b-instruct-v1:0 |
|
|
103
103
|
| Llama-3-1-8b | meta.llama3-1-8b-instruct-v1:0 |
|
|
104
104
|
| Llama-3-1-70b | meta.llama3-1-70b-instruct-v1:0 |
|
|
105
105
|
| Llama-3-1-405b | meta.llama3-1-405b-instruct-v1:0 |
|
package/bedrock-models.js
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
// Description: This file contains the model configurations
|
|
2
|
+
|
|
3
|
+
// NOTE: Not all models are available in all regions.
|
|
4
|
+
// Check the bedrock documentation for availability.
|
|
5
|
+
// The Llama 3.2 modelId's reference cross-region profile ids.
|
|
6
|
+
// https://us-west-2.console.aws.amazon.com/bedrock/home?region=us-west-2#/cross-region-inference
|
|
7
|
+
|
|
2
8
|
export const bedrock_models = [
|
|
3
9
|
{
|
|
4
10
|
// ==================
|
|
5
11
|
// == Llama 3.2 1b ==
|
|
6
12
|
// ==================
|
|
7
13
|
"modelName": "Llama-3-2-1b",
|
|
8
|
-
"modelId": "meta.llama3-2-1b-instruct-v1:0",
|
|
14
|
+
// "modelId": "meta.llama3-2-1b-instruct-v1:0",
|
|
15
|
+
"modelId": "us.meta.llama3-2-1b-instruct-v1:0",
|
|
9
16
|
"bos_text": "<|begin_of_text|>",
|
|
10
17
|
"role_system_message_prefix": "",
|
|
11
18
|
"role_system_message_suffix": "",
|
|
@@ -30,7 +37,8 @@ export const bedrock_models = [
|
|
|
30
37
|
// == Llama 3.2 3b ==
|
|
31
38
|
// ==================
|
|
32
39
|
"modelName": "Llama-3-2-3b",
|
|
33
|
-
"modelId": "meta.llama3-2-3b-instruct-v1:0",
|
|
40
|
+
// "modelId": "meta.llama3-2-3b-instruct-v1:0",
|
|
41
|
+
"modelId": "us.meta.llama3-2-3b-instruct-v1:0",
|
|
34
42
|
"bos_text": "<|begin_of_text|>",
|
|
35
43
|
"role_system_message_prefix": "",
|
|
36
44
|
"role_system_message_suffix": "",
|
|
@@ -55,7 +63,8 @@ export const bedrock_models = [
|
|
|
55
63
|
// == Llama 3.2 11b ==
|
|
56
64
|
// ===================
|
|
57
65
|
"modelName": "Llama-3-2-11b",
|
|
58
|
-
"modelId": "meta.llama3-2-11b-instruct-v1:0",
|
|
66
|
+
// "modelId": "meta.llama3-2-11b-instruct-v1:0",
|
|
67
|
+
"modelId": "us.meta.llama3-2-11b-instruct-v1:0",
|
|
59
68
|
"bos_text": "<|begin_of_text|>",
|
|
60
69
|
"role_system_message_prefix": "",
|
|
61
70
|
"role_system_message_suffix": "",
|
|
@@ -80,7 +89,8 @@ export const bedrock_models = [
|
|
|
80
89
|
// == Llama 3.2 90b ==
|
|
81
90
|
// ===================
|
|
82
91
|
"modelName": "Llama-3-2-90b",
|
|
83
|
-
"modelId": "meta.llama3-2-90b-instruct-v1:0",
|
|
92
|
+
// "modelId": "meta.llama3-2-90b-instruct-v1:0",
|
|
93
|
+
"modelId": "us.meta.llama3-2-90b-instruct-v1:0",
|
|
84
94
|
"bos_text": "<|begin_of_text|>",
|
|
85
95
|
"role_system_message_prefix": "",
|
|
86
96
|
"role_system_message_suffix": "",
|
package/example-test.js
CHANGED
|
@@ -61,7 +61,7 @@ const awsCreds = {
|
|
|
61
61
|
// ----------------------------------------------------------------------
|
|
62
62
|
const openaiChatCompletionsCreateObject = {
|
|
63
63
|
"messages": messages,
|
|
64
|
-
"model": "Llama-3-
|
|
64
|
+
"model": "Llama-3-2-11b",
|
|
65
65
|
"max_tokens": LLM_MAX_GEN_TOKENS,
|
|
66
66
|
"stream": true,
|
|
67
67
|
"temperature": LLM_TEMPERATURE,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bedrock-wrapper",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "🪨 Bedrock Wrapper is an npm package that simplifies the integration of existing OpenAI-compatible API objects with AWS Bedrock's serverless inference LLMs.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|