Skip to content

Latest commit

 

History

History
19 lines (18 loc) · 454 Bytes

f57ce7de0946e9416ddb9150e95f4b74.asciidoc

File metadata and controls

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