Skip to content

Releases: mkht/PSOpenAI

1.5.0

09 Apr 16:48
Compare
Choose a tag to compare

1.5.0

  • Add -MaxRetryCount option for all functions.
    Retries up to the maximum number of times specified if an API request fails with a 429 (Rate limit reached) or 5xx (Server side errors) error. The retry interval increases exponentially up to 128 seconds.
  • These obsolated functions are completely removed.
    • Request-CodeCompletion
    • Request-CodeEdit
  • Minor fixes.

1.3.0

28 Mar 16:07
Compare
Choose a tag to compare

1.3.0

  • Add -Stream option for Request-ChatGPT and Request-TextCompletion.
  • The AI model code-davinci-edit-001 has been outdated.
  • Fix wrong messages about expires date of AI models.

1.2.1

21 Mar 06:48
Compare
Choose a tag to compare

1.2.1

  • OpenAI has announced that the Codex API will be discontinued on 2023-03-23, the following functions may no longer work in the future. In the future release, these functions will be completely removed from the module.
    • Request-CodeCompletion
    • Request-CodeEdit
  • When a request specifying an AI model that has been or will be discontinued by OpenAI is executed, Warning messages will be output. (the request continues to be executed).
    AI models that will output warning messages at this time:
    • code-davinci-001
    • code-davinci-002
    • code-cushman-001
    • code-cushman-002

1.2.0

13 Mar 13:53
Compare
Choose a tag to compare

1.2.0

  • Add StopSequence parameter for Request-ChatGPT, Request-TextCompletion, Request-CodeCompletion.
    When specific words are output from the API, subsequent output is stopped.
    e.g.)
    # This code generates only top 4 list.
    Request-TextCompletion -Prompt 'List of top 10 most populous countries' -StopSequence '5.'

1.1.2

11 Mar 16:45
Compare
Choose a tag to compare

1.1.2

  • Fix an issue that the language code may not be set correctly in Request-AudioTranscription on macOS and Linux environment.
  • Fix minor issues on Windows PowerShell 5.1
  • Fix Flaky Tests.

1.1.0

10 Mar 09:28
Compare
Choose a tag to compare

1.1.0

  • Improve error handling.
  • Change the default value of the MaxTokens parameter of Request-TextCompletion to 2048. The previous default value of 16 was not useful for most use cases.
  • Add the Request-CodeCompletion function. This performs the same process as Request-TextCompletion, but is more suitable for generating program code since the AI model used by default is code-davinci-002.
  • Add Pester tests for all public functions.

1.0.0

08 Mar 13:23
Compare
Choose a tag to compare

1.0.0

  • Initial public release.