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

.Net: Make AzureOpenAI service/model deployment configurable #10786

Conversation

SergeyMenshykh
Copy link
Member

Motivation, Context, and Description

This PR reads Azure OpenAI related configuration: deployment, model, and version from a config file instead of using hardcoded values. Additionally, it adds a configuration property that points to an AI chat service for the agent to use. At the moment, only the Azure OpenAI service is supported, but other services like OpenAI will be added in one of the next PRs.

It also copies some values from the host configuration to environment variables so that the Agent API service can access them. This allows us to keep the host/deployment configuration in one place - the host rather than having the same config in two projects: the host and the API service. The host uses it for deployment and provisioning of Azure resources, while the service uses it to access the provisioned resources.

Next steps include:

  • Reading agent parameters from the configuration.
  • Adding support for OpenAI chat models.

Note: This PR targets the feature-agents-hosting feature branch.
Contributes to: #10149

@SergeyMenshykh SergeyMenshykh self-assigned this Mar 4, 2025
@SergeyMenshykh SergeyMenshykh requested a review from a team as a code owner March 4, 2025 12:22
@markwallace-microsoft markwallace-microsoft added the .NET Issue or Pull requests regarding .NET code label Mar 4, 2025
@SergeyMenshykh SergeyMenshykh merged commit 77c41a9 into feature-agents-hosting Mar 4, 2025
10 checks passed
@SergeyMenshykh SergeyMenshykh deleted the agent-hosting-configuration-for-azureopenai branch March 4, 2025 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
.NET Issue or Pull requests regarding .NET code
Projects
Status: Sprint: Done
Development

Successfully merging this pull request may close these issues.

4 participants