21 lines
533 B
Plaintext
21 lines
533 B
Plaintext
// This file is autogenerated, DO NOT EDIT
|
|
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
|
|
|
|
[source, js]
|
|
----
|
|
const response = await client.inference.put({
|
|
task_type: "text_embedding",
|
|
inference_id: "google_vertex_ai_embeddings",
|
|
inference_config: {
|
|
service: "googlevertexai",
|
|
service_settings: {
|
|
service_account_json: "<service_account_json>",
|
|
model_id: "<model_id>",
|
|
location: "<location>",
|
|
project_id: "<project_id>",
|
|
},
|
|
},
|
|
});
|
|
console.log(response);
|
|
----
|