summaryrefslogtreecommitdiffstats
path: root/src/client/vertexai.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/vertexai.rs')
-rw-r--r--src/client/vertexai.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/vertexai.rs b/src/client/vertexai.rs
index 7cf5a1f..730c5d8 100644
--- a/src/client/vertexai.rs
+++ b/src/client/vertexai.rs
@@ -154,7 +154,10 @@ fn prepare_embeddings(self_: &VertexAIClient, data: &EmbeddingsData) -> Result<R
let access_token = get_access_token(self_.name())?;
let base_url = format!("https://{location}-aiplatform.googleapis.com/v1/projects/{project_id}/locations/{location}/publishers");
- let url = format!("{base_url}/google/models/{}:predict", self_.model.real_name());
+ let url = format!(
+ "{base_url}/google/models/{}:predict",
+ self_.model.real_name()
+ );
let instances: Vec<_> = data.texts.iter().map(|v| json!({"content": v})).collect();