leap360 1.5.0 → 1.5.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 +15 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -140,15 +140,27 @@ import { BedrockRuntimeClient, ConverseCommand } from '@aws-sdk/client-bedrock-r
|
|
|
140
140
|
const leap = new Leap360({ apiKey: 'leap360_...', projectId: 'my-project', serviceName: 'bedrock-service' });
|
|
141
141
|
const bedrock = leap.wrapBedrock(new BedrockRuntimeClient({ region: 'us-east-1' }));
|
|
142
142
|
|
|
143
|
-
// Works with any Bedrock model: Claude, Titan, Llama, Mistral, Cohere
|
|
143
|
+
// Works with any Bedrock model: Claude, Titan, Nova, Llama, Mistral, Cohere
|
|
144
144
|
const res = await bedrock.send(new ConverseCommand({
|
|
145
|
-
modelId: '
|
|
145
|
+
modelId: 'amazon.nova-micro-v1:0', // ✅ Enabled by default in all AWS accounts
|
|
146
146
|
messages: [{ role: 'user', content: [{ text: 'Hello!' }] }],
|
|
147
147
|
}));
|
|
148
148
|
console.log(res.output.message.content[0].text);
|
|
149
149
|
```
|
|
150
150
|
|
|
151
|
-
|
|
151
|
+
**Supported Bedrock models:**
|
|
152
|
+
|
|
153
|
+
| Model family | Example model ID | On-demand? |
|
|
154
|
+
|---|---|---|
|
|
155
|
+
| Amazon Nova | `amazon.nova-micro-v1:0` | ✅ Yes (all accounts) |
|
|
156
|
+
| Amazon Nova | `amazon.nova-lite-v1:0` | ✅ Yes (all accounts) |
|
|
157
|
+
| Amazon Nova | `amazon.nova-pro-v1:0` | ✅ Yes (all accounts) |
|
|
158
|
+
| Anthropic Claude | `anthropic.claude-3-5-sonnet-20241022-v2:0` | ⚠️ Provisioned throughput |
|
|
159
|
+
| Meta Llama | `meta.llama3-70b-instruct-v1:0` | ✅ Yes |
|
|
160
|
+
| Mistral | `mistral.mistral-large-2402-v1:0` | ✅ Yes |
|
|
161
|
+
| Cohere | `cohere.command-r-plus-v1:0` | ✅ Yes |
|
|
162
|
+
|
|
163
|
+
> 💡 **New to Bedrock?** See the full end-to-end test example in [`bedrock-test/`](https://github.com/LeapTheLimit/Leap360-AI/tree/main/bedrock-test) — runs 4 scenarios with real AWS calls and traces everything to your Leap360 dashboard.
|
|
152
164
|
|
|
153
165
|
### Mistral / Any Other LLM — Manual `traceCall`
|
|
154
166
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "leap360",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"description": "Leap360 AI Governance SDK — trace, govern, and monitor AI agents across OpenAI, Anthropic, AWS Bedrock, Gemini, Mistral, and any LLM",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|