Skip to content

AzureOpenAIModelConfiguration should not require an api key, instead support OAuth2 #39841

Open
@flomader

Description

@flomader

Is your feature request related to a problem? Please describe.
For example, azure.ai.evaluation.RelevanceEvaluator cannot be used without a key.

model_config = {
"azure_endpoint": os.environ.get("AZURE_OPENAI_ENDPOINT"),
"api_key": os.environ.get("AZURE_OPENAI_API_KEY"),
"azure_deployment": os.environ.get("AZURE_OPENAI_DEPLOYMENT"),
}

relevance_evaluator = RelevanceEvaluator(model_config)

Describe the solution you'd like
Like for example the AzureOpenAI client (https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/managed-identity#chat-completions) an azure_ad_token_provider should also be possible to use for authentication.

Metadata

Metadata

Labels

AIClientThis issue points to a problem in the data-plane of the library.EvaluationIssues related to the client library for Azure AI EvaluationService AttentionWorkflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-author-feedbackWorkflow: More information is needed from author to address the issue.no-recent-activityThere has been no recent activity on this issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions