From adcede0ac8f7d41dc6fb22479f623f46a71df0c7 Mon Sep 17 00:00:00 2001 From: tim-jagenberg-piscada <77322574+tim-jagenberg-piscada@users.noreply.github.com> Date: Fri, 24 Jan 2025 10:24:32 +0100 Subject: [PATCH] remove duplicate `/` in VertexAI _embed Removed duplicate `/` and aligned `new URL(...` usage with the rest of the file. --- core/llm/llms/VertexAI.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/llm/llms/VertexAI.ts b/core/llm/llms/VertexAI.ts index 8d20c3212..4d52e5c43 100644 --- a/core/llm/llms/VertexAI.ts +++ b/core/llm/llms/VertexAI.ts @@ -445,7 +445,7 @@ class VertexAI extends BaseLLM { } const resp = await this.fetch( - new URL(this.apiBase + `/publishers/google/models/${this.model}:predict`), + new URL(`publishers/google/models/${this.model}:predict`, this.apiBase), { method: "POST", body: JSON.stringify({