Skip to content

Releases: mkht/PSOpenAI

3.9.0

02 May 13:59
Compare
Choose a tag to compare

3.9.0

  • Add new Remove-ThreadMessage function.
  • Add "required" as an option for -ToolChoice
  • Improve documents.

3.8.0

29 Apr 13:44
Compare
Choose a tag to compare

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

25 Apr 11:09
Compare
Choose a tag to compare

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 Batch

    • Start-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 as Azure.

    $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

17 Apr 15:13
Compare
Choose a tag to compare

3.6.1

  • Fix a bug that caused New-Assistant to fail without explicitly passing the model name.
  • Fix an issue that Stop-ThreadRun does not working.
  • Improved code readability using splatting (#6) (Thanks @potatoqualitee!)

3.6.0

14 Apr 15:00
Compare
Choose a tag to compare

3.6.0

  • Add new params to Start-ThreadRun
    • -MaxPromptTokens
    • -MaxCompletionTokens
    • -TruncationStrategyType
    • -TruncationStrategyLastMessages
    • -ToolChoice
    • -ToolChoiceFunctionName
  • Updates the list of model names for tab completions.

3.5.0

08 Apr 10:55
Compare
Choose a tag to compare

3.5.0

  • Add -AdditionalMessages parameter to Start-ThreadRun
  • Add -RunId parameter to Get-ThreadMessage

3.4.0

01 Apr 10:12
Compare
Choose a tag to compare

3.4.0

  • Add -Temperature parameter to Start-ThreadRun

3.3.0

24 Mar 06:49
Compare
Choose a tag to compare

3.3.0

  • Change the parameter type to [switch] for -UseCodeInterpreter & -UseRetrieval
  • Add -Stream parameter to Start-ThreadRun
  • Add -Format parameter to Start-ThreadRun

3.2.0

17 Mar 14:35
Compare
Choose a tag to compare

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

3.1.0

10 Mar 11:58
Compare
Choose a tag to compare
  • Change max value of the -TopLogProbs parameter to 20.
  • Change default api version of Azure OpenAI Service to 2024-03-01-preview
  • Add new common parameters to almost all functions.
    • -AdditionalQuery
    • -AdditionalHeaders
    • -AdditionalBody
  • Fix minor issues.