Releases: mkht/PSOpenAI
Releases · mkht/PSOpenAI
1.12.1
1.12.0
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-Moderationnow 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
1.11.0
- Add new commands for Azure OpenAI Service.
- Fix an issue that unmasked API key would unintentionally be exposed in debug messages when using
-Stream. - Fix issue with organization ID not being used correctly when using
-Stream. - Minor fixes.
1.10.0
1.9.2
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
1.9.0
1.9.0
- Now PSOpenAI has experimental supports for Azure OpenAI Service. These new commands added.
1.8.0
1.8.0
- Add
-Nameoption forRequest-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
-Messageparameter ofRequest-ChatGPTto optional and accepts input from pipeline by property name. - Multiple strings can be specified for
-RolePrompt. - Add
-AsArrayoption forConvertFrom-Token. - Some minor changes.
1.7.0
1.7.0
- Add new commands ConvertTo-Token and ConvertFrom-Token for converting text and token IDs to each other.
(Using microsoft/Tokenizer library.) - Add
-LogitBiasoption forRequest-ChatGPTandRequest-TextCompletion.
1.6.0
1.6.0
- Add a new command Request-Embeddings.
- [IMPORTANT CHANGE]
Change the environment variable name of the API auth key fromOPENAI_TOKENtoOPENAI_API_KEY. And also change the parameter name from-Tokento-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_TOKENand-Tokenwill continue to work, but may be deprecated entirely in the future.