From ce0464c4b7c4f6a09fad13ac48af73e765fbb20b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 22 Oct 2024 23:55:15 +0200 Subject: [PATCH] feat: bump @azure-rest/ai-inference from 1.0.0-beta.2 to 1.0.0-beta.3 (#61) * build(deps): bump @azure-rest/ai-inference Bumps [@azure-rest/ai-inference](https://github.com/Azure/azure-sdk-for-js) from 1.0.0-beta.2 to 1.0.0-beta.3. - [Release notes](https://github.com/Azure/azure-sdk-for-js/releases) - [Changelog](https://github.com/Azure/azure-sdk-for-js/blob/main/documentation/Changelog-for-next-generation.md) - [Commits](https://github.com/Azure/azure-sdk-for-js/compare/@azure-rest/ai-inference_1.0.0-beta.2...@azure-rest/ai-inference_1.0.0-beta.3) --- updated-dependencies: - dependency-name: "@azure-rest/ai-inference" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] * fix: change type --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: xavidop --- src/github_embedders.ts | 2 +- yarn.lock | 15 ++++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/github_embedders.ts b/src/github_embedders.ts index bd872fe..37976a8 100644 --- a/src/github_embedders.ts +++ b/src/github_embedders.ts @@ -125,7 +125,7 @@ export function githubEmbedder(name: string, options?: PluginOptions) { .post(body)) as GetEmbeddings200Response; return { embeddings: embeddings.body.data.map((d) => ({ - embedding: d.embedding, + embedding: Array.isArray(d.embedding) ? d.embedding : [], })), }; }, diff --git a/yarn.lock b/yarn.lock index 13cd468..07ac94c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3,15 +3,16 @@ "@azure-rest/ai-inference@^1.0.0-beta.2": - version "1.0.0-beta.2" - resolved "https://registry.npmjs.org/@azure-rest/ai-inference/-/ai-inference-1.0.0-beta.2.tgz" - integrity sha512-xPnXJmldQ7vufTT1GtoHPk+korWFnl72whoDB34tb9DALTGGBKIAWobDQBMGYdV2ce0/KdhRFPwnfeZjNyfVsw== + version "1.0.0-beta.3" + resolved "https://registry.yarnpkg.com/@azure-rest/ai-inference/-/ai-inference-1.0.0-beta.3.tgz#36594335b2b10430a15aab7c0113ee18d6fc84b7" + integrity sha512-vCiQSD06F9w0FQMEQkH7SNrrjXkHtaHYwGm9J1V5+6XX6vTkqpTkJ2e/gVakNCi4bnNXdc5mecKZf5U/js1RXw== dependencies: "@azure-rest/core-client" "^2.1.0" "@azure/abort-controller" "^1.0.0" "@azure/core-auth" "^1.7.2" "@azure/core-lro" "^2.6.0" "@azure/core-rest-pipeline" "^1.14.0" + "@azure/core-tracing" "^1.2.0" "@azure/logger" "^1.0.0" tslib "^2.6.2" @@ -81,10 +82,10 @@ dependencies: tslib "^2.6.2" -"@azure/core-tracing@^1.0.1": - version "1.1.2" - resolved "https://registry.npmjs.org/@azure/core-tracing/-/core-tracing-1.1.2.tgz" - integrity sha512-dawW9ifvWAWmUm9/h+/UQ2jrdvjCJ7VJEuCJ6XVNudzcOwm53BFZH4Q845vjfgoUAM8ZxokvVNxNxAITc502YA== +"@azure/core-tracing@^1.0.1", "@azure/core-tracing@^1.2.0": + version "1.2.0" + resolved "https://registry.yarnpkg.com/@azure/core-tracing/-/core-tracing-1.2.0.tgz#7be5d53c3522d639cf19042cbcdb19f71bc35ab2" + integrity sha512-UKTiEJPkWcESPYJz3X5uKRYyOcJD+4nYph+KpfdPRnQJVrZfk0KJgdnaAWKfhsBBtAf/D58Az4AvCJEmWgIBAg== dependencies: tslib "^2.6.2"