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.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/client/vertexai.rs b/src/client/vertexai.rs
index a4c4050..828c300 100644
--- a/src/client/vertexai.rs
+++ b/src/client/vertexai.rs
@@ -69,14 +69,10 @@ impl VertexAIClient {
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.name());
- let task_type = match data.query {
- true => "RETRIEVAL_DOCUMENT",
- false => "QUESTION_ANSWERING",
- };
let instances: Vec<_> = data
.texts
.into_iter()
- .map(|v| json!({"task_type": task_type, "content": v}))
+ .map(|v| json!({"content": v}))
.collect();
let body = json!({
"instances": instances,