wirejs-deploy-amplify-basic 0.1.140-llm → 0.1.141-llm

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.
@@ -3,6 +3,6 @@
3
3
  "dependencies": {
4
4
  "jsdom": "^25.0.1",
5
5
  "wirejs-dom": "^1.0.42",
6
- "wirejs-resources": "^0.1.140-llm"
6
+ "wirejs-resources": "^0.1.141-llm"
7
7
  }
8
8
  }
@@ -34,6 +34,7 @@ export class LLM extends BaseLLM {
34
34
  'claude-opus': 'anthropic.claude-3-opus-20240229-v1:0',
35
35
  'llama2': 'meta.llama2-70b-chat-v1',
36
36
  'llama3': 'meta.llama3-70b-instruct-v1:0',
37
+ 'llama3.2': 'meta.llama3-2-90b-instruct-v1:0'
37
38
  };
38
39
  return modelMap[model] || model;
39
40
  }
@@ -142,17 +143,16 @@ export class LLM extends BaseLLM {
142
143
  }
143
144
  }
144
145
  }
145
- const message = this.createBedrockInstructionMessage(`None of the attempted are not available or not enabled in your AWS account. ` +
146
+ const message = this.createBedrockInstructionMessage(`None of the attempted models are not available in your AWS account. ` +
146
147
  `Please enable it in the AWS Bedrock console:\n\n` +
147
148
  `1. Go to AWS Bedrock Console (https://console.aws.amazon.com/bedrock/)\n` +
148
149
  `2. Navigate to "Model access"\n` +
149
150
  `3. Request access to the model\n` +
150
151
  `4. Accept the End User License Agreement (EULA)\n\n` +
151
- `Available models attempted: ${this.models.join(', ')}\n` +
152
- `You may need to enable these models: ${this.models.map(m => this.getModelId(m)).join(', ')}`);
152
+ `Available models attempted: ${this.models.join(', ')}\n`);
153
153
  if (onChunk) {
154
154
  try {
155
- onChunk({
155
+ await onChunk({
156
156
  message,
157
157
  done: true,
158
158
  created_at: new Date().toISOString()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wirejs-deploy-amplify-basic",
3
- "version": "0.1.140-llm",
3
+ "version": "0.1.141-llm",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -44,7 +44,7 @@
44
44
  "recursive-copy": "^2.0.14",
45
45
  "rimraf": "^6.0.1",
46
46
  "wirejs-dom": "^1.0.42",
47
- "wirejs-resources": "^0.1.140-llm"
47
+ "wirejs-resources": "^0.1.141-llm"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@aws-amplify/backend": "^1.14.0",