Last active
February 9, 2023 16:34
-
-
Save AlexanderHolmeset/aa87d0e2c3db970150553bab0f26d9e1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-AzureOpenAIToken -ManagedIdentity $true | |
$DeploymentName = "TextModel" | |
$ResourceName = "AzureOpenAIAlex" | |
$Prompt = "What is microsoft teams?" | |
$Request = Get-Completion -DeploymentName $DeploymentName -ResourceName $ResourceName -Maxtokens 100 -Prompt $Prompt | |
"Genetrated text:" | |
$Request.choices.text | |
"Token cost" | |
$Request.usage |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment