Last active
February 9, 2023 16:35
-
-
Save AlexanderHolmeset/e9557a9d3517bd161dbb2c5a30e5dfce 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 -User $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