Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Releases: mkht/PSOpenAI

1.12.1

04 May 16:48

Choose a tag to compare

1.12.1

  • Improve error handling.

1.12.0

03 May 19:11

Choose a tag to compare

1.12.0

  • Messages can now be entered directly from the pipeline. (Request-ChatGPT)

  • PS C:\> "Can you recommend some music?" | Request-ChatGPT | Select-Object -ExpandProperty Answer
    I can suggest some popular and diverse genres and artists that listeners enjoy...
  • Request-Moderation now outputs a warning message when content policies are violated. To suppress this, specify -WarningAction Ignore.

    PS C:\> Request-Moderation -Text "This is a harmful message" -WarningAction Ignore
  • Fix incorrect links in the command help.

1.11.0

28 Apr 19:42

Choose a tag to compare

1.11.0

1.10.0

27 Apr 16:24

Choose a tag to compare

1.10.0

  • Add -Organization parameter to specify the Organization ID used for API requests.
  • Improve output of verbose and debug messages.
  • Enable tab completion for model names.
  • Misc improvements.

1.9.2

23 Apr 14:02

Choose a tag to compare

1.9.2

  • Add new commands Get-CosineSimilarity for caalculates cosine similarity between two vectors.
    Note: Added for convenience, not good implementation for performance or accuracy. For production use, it is recommended to use an external library such as Math.NET Numerics.

1.9.1

23 Apr 08:52

Choose a tag to compare

1.9.1

  • Improve behavior of ConvertTo-Token and ConvertFrom-Token when a jagged array is input via pipeline.

1.9.0

22 Apr 16:51

Choose a tag to compare

1.9.0

1.8.0

19 Apr 17:18

Choose a tag to compare

1.8.0

  • Add -Name option for Request-ChatGPT.
    This parameter can be used to specify the name of the messenger.
    e.g.)
    PS C:/> (Request-ChatGPT -Message 'Do you know my name?' -Name 'Samuel' -Model 'gpt-4-0314' -Temperature 0).Answer
    Yes, your name is Samuel.
  • Change the -Message parameter of Request-ChatGPT to optional and accepts input from pipeline by property name.
  • Multiple strings can be specified for -RolePrompt.
  • Add -AsArray option for ConvertFrom-Token.
  • Some minor changes.

1.7.0

15 Apr 08:14

Choose a tag to compare

1.7.0

1.6.0

10 Apr 16:47

Choose a tag to compare

1.6.0

  • Add a new command Request-Embeddings.
  • [IMPORTANT CHANGE]
    Change the environment variable name of the API auth key from OPENAI_TOKEN to OPENAI_API_KEY. And also change the parameter name from -Token to -ApiKey.
    This is because the word "Token" is often confused with a term used in the field of machine learning, and the official OpenAI reference uses this name.
    For backward compatibility, OPENAI_TOKEN and -Token will continue to work, but may be deprecated entirely in the future.