Skip to content

3.7.0

Choose a tag to compare

@mkht mkht released this 25 Apr 11:09
· 421 commits to main since this release

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