Skip to content

Latest commit

 

History

History
19 lines (18 loc) · 458 Bytes

77b90f6787195767b6da60d8532714b4.asciidoc

File metadata and controls

19 lines (18 loc) · 458 Bytes
resp = client.inference.put_model(
    task_type="text_embedding",
    inference_id="azure_openai_embeddings",
    body={
        "service": "azureopenai",
        "service_settings": {
            "api_key": "<api_key>",
            "resource_name": "<resource_name>",
            "deployment_id": "<deployment_id>",
            "api_version": "2024-02-01",
        },
    },
)
print(resp)