Skip to content

[Azure Evaluation] Allow selection of credentials for Model configΒ #41295

@FlorianPydde

Description

@FlorianPydde

Currently when creating the config for a model evaluation like below, only api_token is available as parameters. Like for all the other services related to azure openai, it would be great to add the token/credential parameter as parameter. Otherwise, there are some issues due to managed identities settings.

credential = DefaultAzureCredential()
token_provider = get_bearer_token_provider(
    credential, "https://cognitiveservices.azure.com/.default"
)
 model_config = AzureOpenAIModelConfiguration(
        azure_endpoint="<endpoint>",
        azure_deployment="<deployment>",
        api_version="<api_version>",
        token_provider=token_provider 
    )

Metadata

Metadata

Assignees

Labels

ClientThis 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.feature-requestThis issue requires a new behavior in the product in order be resolved.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions