remove duplicate / in VertexAI _embed

Removed duplicate `/` and aligned `new URL(...` usage with the rest of the file.
This commit is contained in:
tim-jagenberg-piscada 2025-01-24 10:24:32 +01:00 • committed by GitHub
parent d4b72ca0ce
commit adcede0ac8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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({