From c9acc6f3539e739889c5d1f0a79904eb15d887e2 Mon Sep 17 00:00:00 2001 From: "hash-worker[bot]" <180894564+hash-worker[bot]@users.noreply.github.com> Date: Tue, 8 Oct 2024 16:13:17 +0000 Subject: [PATCH] Update LLM provider SDK npm packages --- apps/hash-ai-worker-ts/package.json | 4 +- yarn.lock | 131 ++++------------------------ 2 files changed, 17 insertions(+), 118 deletions(-) diff --git a/apps/hash-ai-worker-ts/package.json b/apps/hash-ai-worker-ts/package.json index 4e3a5f352a0..ac01002596e 100644 --- a/apps/hash-ai-worker-ts/package.json +++ b/apps/hash-ai-worker-ts/package.json @@ -41,8 +41,8 @@ "test:unit": "vitest --run --exclude \"**/*.ai.test.ts\"" }, "dependencies": { - "@anthropic-ai/bedrock-sdk": "0.10.0", - "@anthropic-ai/sdk": "0.24.0", + "@anthropic-ai/bedrock-sdk": "0.10.4", + "@anthropic-ai/sdk": "0.29.0", "@apps/hash-graph": "0.0.0-private", "@blockprotocol/graph": "0.4.0-canary.0", "@blockprotocol/type-system": "0.1.2-canary.0", diff --git a/yarn.lock b/yarn.lock index f198fbefc6b..23efdf9910d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -23,28 +23,27 @@ "@jridgewell/gen-mapping" "^0.3.5" "@jridgewell/trace-mapping" "^0.3.24" -"@anthropic-ai/bedrock-sdk@0.10.0": - version "0.10.0" - resolved "https://registry.yarnpkg.com/@anthropic-ai/bedrock-sdk/-/bedrock-sdk-0.10.0.tgz#dba4e05224213b772e66bf4c952deec4484fffa0" - integrity sha512-pkrWJfQywit9wooNawnwczXIs92VE+TGdoIAZvGK24ILQidcA3wzMfE5pYRAkXLDhGGyZJzTBJMdZL2jIC0lOg== +"@anthropic-ai/bedrock-sdk@0.10.4": + version "0.10.4" + resolved "https://registry.yarnpkg.com/@anthropic-ai/bedrock-sdk/-/bedrock-sdk-0.10.4.tgz#54d1d7c5f1ac794c0fde5a6804b4846958d5e77b" + integrity sha512-szduEHbMli6XL934xrraYg5cFuKL/1oMyj/iZuEVjtddQ7eD5cXObzWobsv5mTLWijQmSzMfFD+JAUHDPHlQ/Q== dependencies: "@anthropic-ai/sdk" "^0" "@aws-crypto/sha256-js" "^4.0.0" "@aws-sdk/client-bedrock-runtime" "^3.423.0" "@aws-sdk/credential-providers" "^3.341.0" - "@aws-sdk/protocol-http" "^3.341.0" - "@aws-sdk/signature-v4" "^3.341.0" "@smithy/eventstream-serde-node" "^2.0.10" "@smithy/fetch-http-handler" "^2.2.1" "@smithy/protocol-http" "^3.0.6" + "@smithy/signature-v4" "^3.1.1" "@smithy/smithy-client" "^2.1.9" "@smithy/types" "^2.3.4" "@smithy/util-base64" "^2.0.0" -"@anthropic-ai/sdk@0.24.0", "@anthropic-ai/sdk@^0": - version "0.24.0" - resolved "https://registry.yarnpkg.com/@anthropic-ai/sdk/-/sdk-0.24.0.tgz#6dd50f4e7f3fee35457852de844b047cd6221364" - integrity sha512-iMb1bQimQrSw/Rq6duPiuCJ7uvlSciq5PWp17jVOfy5dK2EJY36ol10ttwb+Zf6yzkKHMdt+vNIpznj/HsPXOg== +"@anthropic-ai/sdk@0.29.0", "@anthropic-ai/sdk@^0": + version "0.29.0" + resolved "https://registry.yarnpkg.com/@anthropic-ai/sdk/-/sdk-0.29.0.tgz#56aaaf252da46190c10500a1e154e9246c57164c" + integrity sha512-3Hj28b7pAqFbGW19jXRqMvyDr09qBcL0iEuvERpbjXaqWD8dwfmMiwWreNcRvAKjeP4W4xTh0JStONvwhOTjEw== dependencies: "@types/node" "^18.11.18" "@types/node-fetch" "^2.6.4" @@ -53,7 +52,6 @@ form-data-encoder "1.7.2" formdata-node "^4.3.2" node-fetch "^2.6.7" - web-streams-polyfill "^3.2.1" "@anthropic-ai/sdk@^0.20.6": version "0.20.7" @@ -1626,14 +1624,6 @@ "@smithy/types" "^3.5.0" tslib "^2.6.2" -"@aws-sdk/protocol-http@^3.341.0": - version "3.374.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/protocol-http/-/protocol-http-3.374.0.tgz#e35e76096b995bbed803897a9f4587d11ca34088" - integrity sha512-9WpRUbINdGroV3HiZZIBoJvL2ndoWk39OfwxWs2otxByppJZNN14bg/lvCx5e8ggHUti7IBk5rb0nqQZ4m05pg== - dependencies: - "@smithy/protocol-http" "^1.1.0" - tslib "^2.5.0" - "@aws-sdk/region-config-resolver@3.587.0": version "3.587.0" resolved "https://registry.yarnpkg.com/@aws-sdk/region-config-resolver/-/region-config-resolver-3.587.0.tgz#ad1c15494f44dfc4c7a7bce389f8b128dace923f" @@ -1711,14 +1701,6 @@ "@smithy/types" "^3.5.0" tslib "^2.6.2" -"@aws-sdk/signature-v4@^3.341.0": - version "3.374.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/signature-v4/-/signature-v4-3.374.0.tgz#bd727f4c392acb81bc667aa4cfceeba608250771" - integrity sha512-2xLJvSdzcZZAg0lsDLUAuSQuihzK0dcxIK7WmfuJeF7DGKJFmp9czQmz5f3qiDz6IDQzvgK1M9vtJSVCslJbyQ== - dependencies: - "@smithy/signature-v4" "^1.0.1" - tslib "^2.5.0" - "@aws-sdk/token-providers@3.587.0": version "3.587.0" resolved "https://registry.yarnpkg.com/@aws-sdk/token-providers/-/token-providers-3.587.0.tgz#f9fd2ddfc554c1370f8d0f467c76a4c8cb904ae6" @@ -8016,16 +7998,6 @@ "@smithy/url-parser" "^3.0.7" tslib "^2.6.2" -"@smithy/eventstream-codec@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@smithy/eventstream-codec/-/eventstream-codec-1.1.0.tgz#bfe1308ba84ff3db3e79dc1ced8231c52ac0fc36" - integrity sha512-3tEbUb8t8an226jKB6V/Q2XU/J53lCwCzULuBPEaF4JjSh+FlCMp7TmogE/Aij5J9DwlsZ4VAD/IRDuQ/0ZtMw== - dependencies: - "@aws-crypto/crc32" "3.0.0" - "@smithy/types" "^1.2.0" - "@smithy/util-hex-encoding" "^1.1.0" - tslib "^2.5.0" - "@smithy/eventstream-codec@^2.2.0": version "2.2.0" resolved "https://registry.yarnpkg.com/@smithy/eventstream-codec/-/eventstream-codec-2.2.0.tgz#63d74fa817188995eb55e792a38060b0ede98dc4" @@ -8158,13 +8130,6 @@ "@smithy/types" "^3.5.0" tslib "^2.6.2" -"@smithy/is-array-buffer@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@smithy/is-array-buffer/-/is-array-buffer-1.1.0.tgz#29948072da2b57575aa9898cda863932e842ab11" - integrity sha512-twpQ/n+3OWZJ7Z+xu43MJErmhB/WO/mMTnqR6PwWQShvSJ/emx5d1N59LQZk6ZpTAeuRWrc+eHhkzTp9NFjNRQ== - dependencies: - tslib "^2.5.0" - "@smithy/is-array-buffer@^2.2.0": version "2.2.0" resolved "https://registry.yarnpkg.com/@smithy/is-array-buffer/-/is-array-buffer-2.2.0.tgz#f84f0d9f9a36601a9ca9381688bd1b726fd39111" @@ -8343,14 +8308,6 @@ "@smithy/types" "^3.5.0" tslib "^2.6.2" -"@smithy/protocol-http@^1.1.0": - version "1.2.0" - resolved "https://registry.yarnpkg.com/@smithy/protocol-http/-/protocol-http-1.2.0.tgz#a554e4dabb14508f0bc2cdef9c3710e2b294be04" - integrity sha512-GfGfruksi3nXdFok5RhgtOnWe5f6BndzYfmEXISD+5gAGdayFGpjWu5pIqIweTudMtse20bGbc+7MFZXT1Tb8Q== - dependencies: - "@smithy/types" "^1.2.0" - tslib "^2.5.0" - "@smithy/protocol-http@^3.0.6", "@smithy/protocol-http@^3.3.0": version "3.3.0" resolved "https://registry.yarnpkg.com/@smithy/protocol-http/-/protocol-http-3.3.0.tgz#a37df7b4bb4960cdda560ce49acfd64c455e4090" @@ -8424,29 +8381,15 @@ "@smithy/types" "^3.5.0" tslib "^2.6.2" -"@smithy/signature-v4@^1.0.1": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@smithy/signature-v4/-/signature-v4-1.1.0.tgz#e85309995c2475d39598a4f56e68b7ed856bdfa6" - integrity sha512-fDo3m7YqXBs7neciOePPd/X9LPm5QLlDMdIC4m1H6dgNLnXfLMFNIxEfPyohGA8VW9Wn4X8lygnPSGxDZSmp0Q== - dependencies: - "@smithy/eventstream-codec" "^1.1.0" - "@smithy/is-array-buffer" "^1.1.0" - "@smithy/types" "^1.2.0" - "@smithy/util-hex-encoding" "^1.1.0" - "@smithy/util-middleware" "^1.1.0" - "@smithy/util-uri-escape" "^1.1.0" - "@smithy/util-utf8" "^1.1.0" - tslib "^2.5.0" - -"@smithy/signature-v4@^3.0.0": - version "3.0.0" - resolved "https://registry.yarnpkg.com/@smithy/signature-v4/-/signature-v4-3.0.0.tgz#f536d0abebfeeca8e9aab846a4042658ca07d3b7" - integrity sha512-kXFOkNX+BQHe2qnLxpMEaCRGap9J6tUGLzc3A9jdn+nD4JdMwCKTJ+zFwQ20GkY+mAXGatyTw3HcoUlR39HwmA== +"@smithy/signature-v4@^3.0.0", "@smithy/signature-v4@^3.1.1": + version "3.1.2" + resolved "https://registry.yarnpkg.com/@smithy/signature-v4/-/signature-v4-3.1.2.tgz#63fc0d4f9a955e902138fb0a57fafc96b9d4e8bb" + integrity sha512-3BcPylEsYtD0esM4Hoyml/+s7WP2LFhcM3J2AGdcL2vx9O60TtfpDOL72gjb4lU8NeRPeKAwR77YNyyGvMbuEA== dependencies: "@smithy/is-array-buffer" "^3.0.0" - "@smithy/types" "^3.0.0" + "@smithy/types" "^3.3.0" "@smithy/util-hex-encoding" "^3.0.0" - "@smithy/util-middleware" "^3.0.0" + "@smithy/util-middleware" "^3.0.3" "@smithy/util-uri-escape" "^3.0.0" "@smithy/util-utf8" "^3.0.0" tslib "^2.6.2" @@ -8489,13 +8432,6 @@ "@smithy/util-stream" "^3.1.9" tslib "^2.6.2" -"@smithy/types@^1.2.0": - version "1.2.0" - resolved "https://registry.yarnpkg.com/@smithy/types/-/types-1.2.0.tgz#9dc65767b0ee3d6681704fcc67665d6fc9b6a34e" - integrity sha512-z1r00TvBqF3dh4aHhya7nz1HhvCg4TRmw51fjMrh5do3h+ngSstt/yKlNbHeb9QxJmFbmN8KEVSWgb1bRvfEoA== - dependencies: - tslib "^2.5.0" - "@smithy/types@^2.12.0", "@smithy/types@^2.3.4": version "2.12.0" resolved "https://registry.yarnpkg.com/@smithy/types/-/types-2.12.0.tgz#c44845f8ba07e5e8c88eda5aed7e6a0c462da041" @@ -8560,14 +8496,6 @@ dependencies: tslib "^2.6.2" -"@smithy/util-buffer-from@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@smithy/util-buffer-from/-/util-buffer-from-1.1.0.tgz#a000bd9f95c0e8d5b0edb0112f2a586daa5bed49" - integrity sha512-9m6NXE0ww+ra5HKHCHig20T+FAwxBAm7DIdwc/767uGWbRcY720ybgPacQNB96JMOI7xVr/CDa3oMzKmW4a+kw== - dependencies: - "@smithy/is-array-buffer" "^1.1.0" - tslib "^2.5.0" - "@smithy/util-buffer-from@^2.2.0": version "2.2.0" resolved "https://registry.yarnpkg.com/@smithy/util-buffer-from/-/util-buffer-from-2.2.0.tgz#6fc88585165ec73f8681d426d96de5d402021e4b" @@ -8624,13 +8552,6 @@ "@smithy/types" "^3.5.0" tslib "^2.6.2" -"@smithy/util-hex-encoding@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@smithy/util-hex-encoding/-/util-hex-encoding-1.1.0.tgz#b5ba919aa076a3fd5e93e368e34ae2b732fa2090" - integrity sha512-7UtIE9eH0u41zpB60Jzr0oNCQ3hMJUabMcKRUVjmyHTXiWDE4vjSqN6qlih7rCNeKGbioS7f/y2Jgym4QZcKFg== - dependencies: - tslib "^2.5.0" - "@smithy/util-hex-encoding@^2.2.0": version "2.2.0" resolved "https://registry.yarnpkg.com/@smithy/util-hex-encoding/-/util-hex-encoding-2.2.0.tgz#87edb7c88c2f422cfca4bb21f1394ae9602c5085" @@ -8645,13 +8566,6 @@ dependencies: tslib "^2.6.2" -"@smithy/util-middleware@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@smithy/util-middleware/-/util-middleware-1.1.0.tgz#9f186489437ca2ef753c5e1de2930f76fd1edc14" - integrity sha512-6hhckcBqVgjWAqLy2vqlPZ3rfxLDhFWEmM7oLh2POGvsi7j0tHkbN7w4DFhuBExVJAbJ/qqxqZdRY6Fu7/OezQ== - dependencies: - tslib "^2.5.0" - "@smithy/util-middleware@^2.2.0": version "2.2.0" resolved "https://registry.yarnpkg.com/@smithy/util-middleware/-/util-middleware-2.2.0.tgz#80cfad40f6cca9ffe42a5899b5cb6abd53a50006" @@ -8705,13 +8619,6 @@ "@smithy/util-utf8" "^3.0.0" tslib "^2.6.2" -"@smithy/util-uri-escape@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@smithy/util-uri-escape/-/util-uri-escape-1.1.0.tgz#a8c5edaf19c0efdb9b51661e840549cf600a1808" - integrity sha512-/jL/V1xdVRt5XppwiaEU8Etp5WHZj609n0xMTuehmCqdoOFbId1M+aEeDWZsQ+8JbEB/BJ6ynY2SlYmOaKtt8w== - dependencies: - tslib "^2.5.0" - "@smithy/util-uri-escape@^2.2.0": version "2.2.0" resolved "https://registry.yarnpkg.com/@smithy/util-uri-escape/-/util-uri-escape-2.2.0.tgz#56f5764051a33b67bc93fdd2a869f971b0635406" @@ -8726,14 +8633,6 @@ dependencies: tslib "^2.6.2" -"@smithy/util-utf8@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@smithy/util-utf8/-/util-utf8-1.1.0.tgz#b791ab1e3f694374edfe22811e39dd8424a1be69" - integrity sha512-p/MYV+JmqmPyjdgyN2UxAeYDj9cBqCjp0C/NsTWnnjoZUVqoeZ6IrW915L9CAKWVECgv9lVQGc4u/yz26/bI1A== - dependencies: - "@smithy/util-buffer-from" "^1.1.0" - tslib "^2.5.0" - "@smithy/util-utf8@^2.0.0", "@smithy/util-utf8@^2.3.0": version "2.3.0" resolved "https://registry.yarnpkg.com/@smithy/util-utf8/-/util-utf8-2.3.0.tgz#dd96d7640363259924a214313c3cf16e7dd329c5"