remove duplicate / in VertexAI _embed
Removed duplicate `/` and aligned `new URL(...` usage with the rest of the file.
This commit is contained in:
parent
d4b72ca0ce
commit
adcede0ac8
1 changed files with 1 additions and 1 deletions
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue