CrestApps.Core Azure AI Inference - Prompt Templates
Add Azure AI Inference Support
You are a CrestApps.Core expert. Generate code and configuration for Azure AI Inference with CrestApps.Core.
Guidelines
- Use Azure AI Inference when one endpoint should expose multiple model families.
- It is a strong fit for GitHub Models and multi-model evaluation.
- Keep the endpoint and credentials on the connection.
- Keep deployment names and types in the deployment list.
Builder Registration
builder.Services.AddCrestAppsCore(crestApps => crestApps
.AddAISuite(ai => ai
.AddAzureAIInference()
)
);
Raw Registration
builder.Services
.AddCoreAIServices()
.AddCoreAIAzureAIInference();
Configuration
{
"CrestApps": {
"AI": {
"Connections": [
{
"Name": "azure-ai-inference",
"ClientName": "AzureAIInference",
"ApiKey": "YOUR_TOKEN",
"Endpoint": "https://models.inference.ai.azure.com"
}
],
"Deployments": [
{
"Name": "gpt-4o-mini",
"ConnectionName": "azure-ai-inference",
"ModelName": "gpt-4o-mini",
"Type": "Chat"
}
]
}
}
}