@jambonz/llm 0.2.1 → 0.2.3
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/dist/index.cjs +22 -33
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +22 -33
- package/dist/index.js.map +1 -1
- package/dist/test-kit/index.cjs +22 -33
- package/dist/test-kit/index.cjs.map +1 -1
- package/dist/test-kit/index.js +22 -33
- package/dist/test-kit/index.js.map +1 -1
- package/package.json +1 -1
package/dist/test-kit/index.js
CHANGED
|
@@ -1558,7 +1558,7 @@ var VertexOpenAIAdapter = class {
|
|
|
1558
1558
|
if (!auth.location) {
|
|
1559
1559
|
throw new Error("VertexOpenAIAdapter: location is required");
|
|
1560
1560
|
}
|
|
1561
|
-
const baseURL = `https://${auth.location}-aiplatform.googleapis.com/
|
|
1561
|
+
const baseURL = `https://${auth.location}-aiplatform.googleapis.com/v1beta1/projects/${auth.projectId}/locations/${auth.location}/endpoints/openapi`;
|
|
1562
1562
|
const googleAuth = new GoogleAuth({
|
|
1563
1563
|
credentials: auth.credentials,
|
|
1564
1564
|
scopes: ["https://www.googleapis.com/auth/cloud-platform"]
|
|
@@ -1620,52 +1620,52 @@ import {
|
|
|
1620
1620
|
// src/adapters/bedrock/manifest.ts
|
|
1621
1621
|
var BEDROCK_KNOWN_MODELS = [
|
|
1622
1622
|
{
|
|
1623
|
-
id: "
|
|
1624
|
-
displayName: "
|
|
1623
|
+
id: "amazon.nova-micro-v1:0",
|
|
1624
|
+
displayName: "Amazon Nova Micro",
|
|
1625
1625
|
capabilities: {
|
|
1626
1626
|
streaming: true,
|
|
1627
1627
|
tools: true,
|
|
1628
1628
|
vision: false,
|
|
1629
1629
|
systemPrompt: true,
|
|
1630
|
-
maxContextTokens:
|
|
1630
|
+
maxContextTokens: 128e3
|
|
1631
1631
|
}
|
|
1632
1632
|
},
|
|
1633
1633
|
{
|
|
1634
|
-
id: "
|
|
1635
|
-
displayName: "
|
|
1634
|
+
id: "amazon.nova-lite-v1:0",
|
|
1635
|
+
displayName: "Amazon Nova Lite",
|
|
1636
1636
|
capabilities: {
|
|
1637
1637
|
streaming: true,
|
|
1638
1638
|
tools: true,
|
|
1639
|
-
vision:
|
|
1639
|
+
vision: true,
|
|
1640
1640
|
systemPrompt: true,
|
|
1641
|
-
maxContextTokens:
|
|
1641
|
+
maxContextTokens: 3e5
|
|
1642
1642
|
}
|
|
1643
1643
|
},
|
|
1644
1644
|
{
|
|
1645
|
-
id: "
|
|
1646
|
-
displayName: "
|
|
1645
|
+
id: "amazon.nova-pro-v1:0",
|
|
1646
|
+
displayName: "Amazon Nova Pro",
|
|
1647
1647
|
capabilities: {
|
|
1648
1648
|
streaming: true,
|
|
1649
1649
|
tools: true,
|
|
1650
1650
|
vision: true,
|
|
1651
1651
|
systemPrompt: true,
|
|
1652
|
-
maxContextTokens:
|
|
1652
|
+
maxContextTokens: 3e5
|
|
1653
1653
|
}
|
|
1654
1654
|
},
|
|
1655
1655
|
{
|
|
1656
|
-
id: "anthropic.claude-3-5-
|
|
1657
|
-
displayName: "Claude 3.5
|
|
1656
|
+
id: "anthropic.claude-3-5-haiku-20241022-v1:0",
|
|
1657
|
+
displayName: "Claude 3.5 Haiku (on Bedrock)",
|
|
1658
1658
|
capabilities: {
|
|
1659
1659
|
streaming: true,
|
|
1660
1660
|
tools: true,
|
|
1661
|
-
vision:
|
|
1661
|
+
vision: false,
|
|
1662
1662
|
systemPrompt: true,
|
|
1663
1663
|
maxContextTokens: 2e5
|
|
1664
1664
|
}
|
|
1665
1665
|
},
|
|
1666
1666
|
{
|
|
1667
|
-
id: "anthropic.claude-3-
|
|
1668
|
-
displayName: "Claude 3.
|
|
1667
|
+
id: "anthropic.claude-3-5-sonnet-20240620-v1:0",
|
|
1668
|
+
displayName: "Claude 3.5 Sonnet (on Bedrock)",
|
|
1669
1669
|
capabilities: {
|
|
1670
1670
|
streaming: true,
|
|
1671
1671
|
tools: true,
|
|
@@ -1675,36 +1675,25 @@ var BEDROCK_KNOWN_MODELS = [
|
|
|
1675
1675
|
}
|
|
1676
1676
|
},
|
|
1677
1677
|
{
|
|
1678
|
-
id: "
|
|
1679
|
-
displayName: "
|
|
1680
|
-
capabilities: {
|
|
1681
|
-
streaming: true,
|
|
1682
|
-
tools: true,
|
|
1683
|
-
vision: false,
|
|
1684
|
-
systemPrompt: true,
|
|
1685
|
-
maxContextTokens: 128e3
|
|
1686
|
-
}
|
|
1687
|
-
},
|
|
1688
|
-
{
|
|
1689
|
-
id: "amazon.nova-lite-v1:0",
|
|
1690
|
-
displayName: "Amazon Nova Lite",
|
|
1678
|
+
id: "anthropic.claude-3-5-sonnet-20241022-v2:0",
|
|
1679
|
+
displayName: "Claude 3.5 Sonnet v2 (on Bedrock)",
|
|
1691
1680
|
capabilities: {
|
|
1692
1681
|
streaming: true,
|
|
1693
1682
|
tools: true,
|
|
1694
1683
|
vision: true,
|
|
1695
1684
|
systemPrompt: true,
|
|
1696
|
-
maxContextTokens:
|
|
1685
|
+
maxContextTokens: 2e5
|
|
1697
1686
|
}
|
|
1698
1687
|
},
|
|
1699
1688
|
{
|
|
1700
|
-
id: "
|
|
1701
|
-
displayName: "
|
|
1689
|
+
id: "anthropic.claude-3-7-sonnet-20250219-v1:0",
|
|
1690
|
+
displayName: "Claude 3.7 Sonnet (on Bedrock)",
|
|
1702
1691
|
capabilities: {
|
|
1703
1692
|
streaming: true,
|
|
1704
1693
|
tools: true,
|
|
1705
1694
|
vision: true,
|
|
1706
1695
|
systemPrompt: true,
|
|
1707
|
-
maxContextTokens:
|
|
1696
|
+
maxContextTokens: 2e5
|
|
1708
1697
|
}
|
|
1709
1698
|
},
|
|
1710
1699
|
{
|