Skip to content

Commit 99233e7

Browse files
lhrotkmslhrotk
andauthored
fix: change to use mwc token for tenant setting check (#2300)
Co-authored-by: cruise <cruiseli@microsoft.com>
1 parent 0ad58b7 commit 99233e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/scala/com/microsoft/azure/synapse/ml/fabric/OpenAIFabricSetting.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ trait OpenAIFabricSetting extends RESTUtils {
99

1010
private def getHeaders: Map[String, String] = {
1111
Map(
12-
"Authorization" -> s"Bearer ${TokenLibrary.getAccessToken}",
12+
"Authorization" -> FabricClient.getCognitiveMWCTokenAuthHeader,
1313
"Content-Type" -> "application/json"
1414
)
1515
}

0 commit comments

Comments
 (0)