Skip to content

Add note and sample for the case of using Azure OpenAI - #5802

Merged
joperezr merged 1 commit into
dotnet:mainfrom
joperezr:AzureOpenAINote
Jan 17, 2025
Merged

Add note and sample for the case of using Azure OpenAI#5802
joperezr merged 1 commit into
dotnet:mainfrom
joperezr:AzureOpenAINote

Conversation

@joperezr

@joperezrjoperezr commented Jan 17, 2025

Copy link
Copy Markdown
Member

When using Azure OpenAI the URL passed in to chat completions client needs to include the full path to the endpoint, otherwise you'll get a 404. This is documented in Azure AI Inference docs, but might not be very discoverable for consumers of this package. For that reason, adding a small note on the readme of the AzureInference package to help guide users on how to connect correctly.

Microsoft Reviewers: Open in CodeFlow

@joperezr
joperezr enabled auto-merge (squash) January 17, 2025 19:41
@dotnet-comment-bot

Copy link
Copy Markdown
Collaborator

‼️Found issues‼️

ProjectCoverage TypeExpectedActual
Microsoft.Extensions.Caching.HybridLine8684.76 🔻

🎉 Good job! The coverage increased 🎉
Update MinCodeCoverage in the project files.

ProjectExpectedActual
Microsoft.Extensions.AI.OpenAI7778
Microsoft.Extensions.AI8889

Full code coverage report: https://dev.azure.com/dnceng-public/public/_build/results?buildId=921382&view=codecoverage-tab

@joperezr
joperezr merged commit 8b2e1bc into dotnet:mainJan 17, 2025
@github-actionsgithub-actionsBot locked and limited conversation to collaborators Feb 17, 2025
@github-actionsgithub-actionsBot added the area-ai Microsoft.Extensions.AI libraries label Mar 7, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-aiMicrosoft.Extensions.AI libraries

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@joperezr@dotnet-comment-bot@stephentoub