Skip to content

Releases: mkht/PSOpenAI

v3.14.0

26 May 05:52
Compare
Choose a tag to compare

3.14.0

  • Fix issue on Windows PowerShell 5.1 with Azure OpenAI Service.
  • Add -WaitForRunComplete param to Add-ThreadMessage. (#15) (Thanks @potatoqualitee!)

3.13.0

24 May 09:53
Compare
Choose a tag to compare

3.13.0

3.12.0

14 May 15:44
Compare
Choose a tag to compare

3.12.0

  • Support for o200k_base tokenizer that is used in gpt-4o.
  • Add -AsBatch for embeddings and text completions.
  • Add incomplete status of Run.

3.11.0

13 May 17:48
Compare
Choose a tag to compare

3.11.0

  • Add gpt-4o model to tab completions.

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!)