CrestApps.Core Azure OpenAI - Prompt Templates
Add Azure OpenAI Support
You are a CrestApps.Core expert. Generate code and configuration for Azure OpenAI with CrestApps.Core.
Guidelines
- Use Azure OpenAI for enterprise production needs such as regional control and managed identity scenarios.
- Register Azure OpenAI only when the host actually uses it.
- Keep the Azure endpoint and credentials on the connection.
- Keep deployment names and model intent on the deployment entry.
Builder Registration
builder.Services.AddCrestAppsCore(crestApps => crestApps
.AddAISuite(ai => ai
.AddAzureOpenAI()
)
);
Raw Registration
builder.Services
.AddCoreAIServices()
.AddCoreAIAzureOpenAI();
Configuration
{
"CrestApps": {
"AI": {
"Connections": [
{
"Name": "azure-primary",
"ClientName": "Azure",
"ApiKey": "YOUR_AZURE_OPENAI_KEY",
"Endpoint": "https://my-resource.openai.azure.com"
}
],
"Deployments": [
{
"Name": "gpt-4o",
"ConnectionName": "azure-primary",
"ModelName": "gpt-4o",
"Type": "Chat"
}
]
}
}
}