Skip to content

Latest commit

 

History

History
20 lines (19 loc) · 531 Bytes

04de2e3a9c00c2056b07bf9cf9e63a99.asciidoc

File metadata and controls

20 lines (19 loc) · 531 Bytes
resp = 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>"
        }
    },
)
print(resp)