Skip to content

Latest commit

 

History

History
17 lines (16 loc) · 360 Bytes

9f16fca9813304e398ee052aa857dbcd.asciidoc

File metadata and controls

17 lines (16 loc) · 360 Bytes
resp = client.inference.put_model(
    task_type="text_embedding",
    inference_id="openai-embeddings",
    body={
        "service": "openai",
        "service_settings": {
            "api_key": "<api_key>",
            "model_id": "text-embedding-ada-002",
        },
    },
)
print(resp)