AzureOpenAIServiceLLMClient#
AzureOpenAIServiceLLMClient targets Azure OpenAI via the official openai SDK.
Default behavior#
Default model:
gpt-4o-mini(used as the Azure deployment name)Remote execution through Azure OpenAI service endpoints
Constructor-first usage#
from design_research_agents import AzureOpenAIServiceLLMClient
from design_research_agents.llm import LLMMessage, LLMRequest
client = AzureOpenAIServiceLLMClient(
azure_endpoint="https://your-resource.openai.azure.com",
api_version="2025-01-01-preview",
)
response = client.generate(
LLMRequest(
messages=(LLMMessage(role="user", content="Give me three study themes."),),
model=client.default_model(),
)
)
Dependencies and environment#
Install extra:
pip install -e ".[azure]"(orpip install "design-research-agents[azure]")azureinstalls the sameopenaiSDK package asopenai; it exists so Azure-targeted setup commands can be explicit.AZURE_OPENAI_API_KEY(or passapi_keydirectly)AZURE_OPENAI_ENDPOINT(or passazure_endpointdirectly)AZURE_OPENAI_API_VERSION(or passapi_versiondirectly)Network access to Azure OpenAI
Attribution#
Homepage: Azure OpenAI overview