Skip to content

Commit

Permalink
πŸ”’ Comment out unsupported Azure AI token logic
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Oct 19, 2024
1 parent 59c10d6 commit 3fb0bc1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/cli/src/nodehost.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,9 @@ export class NodeHost implements RuntimeHost {
if (!this._azureOpenAIToken)
throw new Error("Azure OpenAI token not available")
tok.token = "Bearer " + this._azureOpenAIToken.token
} else {
}
/* not supported yet
else {
if (isAzureTokenExpired(this._azureServerlessToken)) {
logVerbose(
`fetching Azure AI Infererence token ${this._azureServerlessToken?.expiresOnTimestamp >= Date.now() ? `(expired ${new Date(this._azureServerlessToken.expiresOnTimestamp).toLocaleString()})` : ""}`
Expand All @@ -206,6 +208,7 @@ export class NodeHost implements RuntimeHost {
throw new Error("Azure AI Inference token not available")
tok.token = "Bearer " + this._azureServerlessToken.token
}
*/
}
if (!tok) {
const { provider } = parseModelIdentifier(modelId)
Expand Down

0 comments on commit 3fb0bc1

Please sign in to comment.