Repository navigation
3.7.0
3.7.0
-
Add new functions for Batch API.
To use Batch with the new PSOpenAI cmdlets, please refer to this guide.
Guide: How to use BatchStart-BatchGet-BatchWait-BatchStop-BatchGet-BatchOutput
-
Register-OpenAIFileis used to make byte arrays uploadable without saving them to a file.$ByteArray = [System.Text.Encoding]::UTF8.GetBytes('some text data') Register-OpenAIFile -Content $ByteArray -Name 'filename.txt' -Purpose assistants
-
All Azure versions of the function is deprecated.
Instead, the-ApiTypeparameter added to the normal functions.
You can call the Azure OpenAI Service by specifying-ApiTypeasAzure.$env:OPENAI_API_KEY = '<Put your api key here>' $env:OPENAI_API_BASE = 'https://<your-resource-name>.openai.azure.com/' Request-ChatCompletion ` -Message 'Hello.' ` -Deployment 'gpt-4' ` -ApiType Azure