Merge pull request #3835 from tim-jagenberg-piscada/bugfix/vertexai_embed

remove duplicate `/` in VertexAI _embed
This commit is contained in:
Nate Sesti 2025-02-21 10:21:43 -08:00 • committed by GitHub
commit dd8641be3e
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({