SDK reference for Azure Foundry in the Models API, available in Node.js and Python.
Models
Azure Foundry Deployments
Lists Azure Foundry deployments under the given base_url and merges each entry with the matching model catalog entry. Only OpenAI-developed deployments in succeeded state with chat/completion/embedding/vision model types are returned.
from orq_ai_sdk import Orqimport oswith Orq( api_key=os.getenv("ORQ_API_KEY"),) as orq: res = orq.models.azure_foundry_deployments(api_key="<value>", base_url="https://project.openai.azure.com/openai/v1", provider="<value>") # Handle response print(res)
import { Orq } from "@orq-ai/node";const orq = new Orq({ apiKey: process.env["ORQ_API_KEY"] ?? "",});async function run() { const result = await orq.models.azureFoundryDeployments({ apiKey: "<value>", baseUrl: "https://project.openai.azure.com/openai/v1", provider: "<value>", }); console.log(result);}run();