Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure OpenAI Integration - add instructions for working with deployments #1656

Open
jmatthiesen opened this issue Sep 18, 2024 · 0 comments
Open
Labels
⌚ Not Triaged Not triaged

Comments

@jmatthiesen
Copy link

In the documentation for the Azure OpenAI integration it doesn't mention how to specify deployments to use. This is an important detail with Azure OpenAI, because Deployments in the service represent the models that you use. There are a couple ways I know you can specify deployments:

  1. In Connection Strings:
"ConnectionStrings": {
  "openAiConnectionName": "Endpoint=https://TODO.openai.azure.com/;Deployment=TODO"
}
  1. In AppHost directly:
var openai = builder.AddAzureOpenAI("openai")
    .AddDeployment(
        new(deploymentName, "gpt-4o", "2024-05-13")
    );

There may be some other way as well. I'd appreciate having some more guidance in the docs, since I had to look across a few samples to figure out these options.

@dotnet-bot dotnet-bot added the ⌚ Not Triaged Not triaged label Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⌚ Not Triaged Not triaged
Projects
None yet
Development

No branches or pull requests

2 participants