From d1ad58a7f737562103ecb7ae714c11e2b4b3aa77 Mon Sep 17 00:00:00 2001 From: cruise Date: Tue, 15 Oct 2024 13:36:14 +0800 Subject: [PATCH] change to use mwc token for tenant setting check --- .../microsoft/azure/synapse/ml/fabric/OpenAIFabricSetting.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/scala/com/microsoft/azure/synapse/ml/fabric/OpenAIFabricSetting.scala b/core/src/main/scala/com/microsoft/azure/synapse/ml/fabric/OpenAIFabricSetting.scala index d5a1bc5900..823714ddbd 100644 --- a/core/src/main/scala/com/microsoft/azure/synapse/ml/fabric/OpenAIFabricSetting.scala +++ b/core/src/main/scala/com/microsoft/azure/synapse/ml/fabric/OpenAIFabricSetting.scala @@ -9,7 +9,7 @@ trait OpenAIFabricSetting extends RESTUtils { private def getHeaders: Map[String, String] = { Map( - "Authorization" -> s"Bearer ${TokenLibrary.getAccessToken}", + "Authorization" -> FabricClient.getCognitiveMWCTokenAuthHeader, "Content-Type" -> "application/json" ) }