Install any skill in seconds. Free to start, no credit card required.
Get Started Free →microsoft/azure-ai-openai-dotnet
Azure OpenAI SDK for .NET. Client library for Azure OpenAI and OpenAI services.
Passed 21 of 23 test cases with the skill, and 21 of 23 without it.
1 fixed20 passed either way1 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
A test case the skill fixed. Same model, same prompt, with and without the skill.
I am building a RAG application in .NET using the Azure OpenAI SDK. I need a C# method that connects to my deployed chat model, attaches my Azure Cognitive Search index as a data source, and asks a question about employee benefits. The method should display the final answer along with all citation contents returned in the response context. Please write a clear C# snippet using the 2.x SDK.
| Checked | Without skill | With skill |
|---|---|---|
| The code calls GetMessageContext on the completion response object. | Missed | Passed |
| The code iterates over citations using the ChatMessageContext class. | Missed | Passed |
The instructions your model reads when the skill loads.
Client library for Azure OpenAI Service providing access to OpenAI models including GPT-4, GPT-4o, embeddings, DALL-E, and Whisper.
dotnet add package Azure.AI.OpenAI
# For OpenAI (non-Azure) compatibility
dotnet add package OpenAI
Current Version: 2.1.0 (stable)
AZURE_OPENAI_ENDPOINT=https://<resource-name>.openai.azure.com # Required: Azure OpenAI endpoint
AZURE_OPENAI_API_KEY=<api-key> # Only required for AzureKeyCredential auth
AZURE_OPENAI_DEPLOYMENT_NAME=gpt-4o-mini # Required: model deployment name
AZURE_TOKEN_CREDENTIALS=prod # Required only if DefaultAzureCredential is used in production
AzureOpenAIClient (top-level)
├── GetChatClient(deploymentName) → ChatClient
├── GetEmbeddingClient(deploymentName) → EmbeddingClient
├── GetImageClient(deploymentName) → ImageClient
├── GetAudioClient(deploymentName) → AudioClient
└── GetAssistantClient() → AssistantClient
test cases passed, vs 21 / 23 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.