Skip to content

Releases: mkht/PSOpenAI

3.10.0

11 May 06:31
Compare
Choose a tag to compare

3.10.0

  • Add -Images parameter to Add-ThreadMessage.
    This makes that the image input can be used in Assistants.
  • Fix issues about relative file path input.
  • Rename Register-OpenAIFile to Add-OpenAIFile.
    (Note: You can still use Register-OpenAIFile as an alias. However, in the future release, the alias will be removed.)

3.9.1

02 May 15:08
Compare
Choose a tag to compare

3.9.1

  • Fix issue that the Start-ThreadRun would throw an authentication error in some situations. (#11) (Thanks @potatoqualitee!)
  • Fix issue that the Start-ThreadRun with -Stream doesn't work on Windows PowerShell 5.1
  • Improve documents.

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