File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed
providers/azure-ai-inference Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -1011,7 +1011,6 @@ export function constructConfigFromRequestHeaders(
1011
1011
resourceName : requestHeaders [ `x-${ POWERED_BY } -azure-resource-name` ] ,
1012
1012
deploymentId : requestHeaders [ `x-${ POWERED_BY } -azure-deployment-id` ] ,
1013
1013
apiVersion : requestHeaders [ `x-${ POWERED_BY } -azure-api-version` ] ,
1014
- azureAdToken : requestHeaders [ `x-${ POWERED_BY } -azure-ad-token` ] ,
1015
1014
azureAuthMode : requestHeaders [ `x-${ POWERED_BY } -azure-auth-mode` ] ,
1016
1015
azureManagedClientId :
1017
1016
requestHeaders [ `x-${ POWERED_BY } -azure-managed-client-id` ] ,
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ const AzureAIInferenceAPI: ProviderAPIConfig = {
19
19
20
20
return `https://${ azureEndpointName } .${ azureRegion } .inference.ml.azure.com/score` ;
21
21
} ,
22
- headers : async ( { providerOptions } ) => {
22
+ headers : ( { providerOptions } ) => {
23
23
const { apiKey, azureDeploymentType, azureDeploymentName } =
24
24
providerOptions ;
25
25
const headers : Record < string , string > = {
You can’t perform that action at this time.
0 commit comments