Releases: mkht/PSOpenAI
Releases · mkht/PSOpenAI
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
3.6.1
3.6.0
3.5.0
3.4.0
3.3.0
3.2.0
3.2.0
-
Start-ThreadRun
now can be use without preparing threads in advance.example :
$Assistant = New-Assistant -Model "gpt-3.5-turbo" $Run = Start-ThreadRun -Assistant $Assistant -Message "Hello, what can you do for me?" $Result = $Run | Receive-ThreadRun -Wait