Releases: mkht/PSOpenAI
Releases · mkht/PSOpenAI
3.10.0
3.10.0
- Add
-Images
parameter toAdd-ThreadMessage
.
This makes that the image input can be used in Assistants. - Fix issues about relative file path input.
- Rename
Register-OpenAIFile
toAdd-OpenAIFile
.
(Note: You can still useRegister-OpenAIFile
as an alias. However, in the future release, the alias will be removed.)
3.9.1
3.9.0
3.9.0
- Add new Remove-ThreadMessage function.
- Add "required" as an option for
-ToolChoice
- Improve documents.
3.8.0
3.8.0
- Commands for Assistants now uses v2 version of API. (Still in beta)
- Add new commands for Vector Store.
- Fix minor issues
Guide: How to use File search with Assistants and Vector Store
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-Batch
Get-Batch
Wait-Batch
Stop-Batch
Get-BatchOutput
-
Register-OpenAIFile
is 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-ApiType
parameter added to the normal functions.
You can call the Azure OpenAI Service by specifying-ApiType
asAzure
.$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