Skip to content

Commit

Permalink
v4.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mkht committed Oct 1, 2024
1 parent e74d977 commit 66f01d8
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 7 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.ja.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# 変更履歴
### 4.6.0
- `Request-Moderation``-Images`パラメータを追加します

### 4.5.0
- `omni-moderation-latest`モデルをタブ補完に追加します
- `omni-moderation-latest`モデルをタブ補完に追加します

### 4.4.1
- 非ASCIIファイル名のファイルアップロード処理を改善
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Changelog
### 4.6.0
- Add `-Images` parameter for `Request-Moderation`.

### 4.5.0
- Add `omni-moderation-latest` model to tab completions.

Expand Down
36 changes: 31 additions & 5 deletions PSOpenAI-Help.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14507,10 +14507,23 @@ https://platform.openai.com/docs/guides/moderation/overview</maml:para>
<command:syntax>
<command:syntaxItem>
<maml:name>Request-Moderation</maml:name>
<command:parameter required="true" variableLength="true" globbing="false" pipelineInput="True (ByValue)" position="1" aliases="Input">
<command:parameter required="false" variableLength="true" globbing="false" pipelineInput="True (ByValue)" position="1" aliases="Input">
<maml:name>Text</maml:name>
<maml:description>
<maml:para>(Required) The input text to classify.</maml:para>
<maml:para>A string of text to classify for moderation.</maml:para>
</maml:description>
<command:parameterValue required="true" variableLength="false">String[]</command:parameterValue>
<dev:type>
<maml:name>String[]</maml:name>
<maml:uri />
</dev:type>
<dev:defaultValue>None</dev:defaultValue>
</command:parameter>
<command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none">
<maml:name>Images</maml:name>
<maml:description>
<maml:para>An array of images to passing the model. You can specifies local image file or remote url.
</maml:para>
</maml:description>
<command:parameterValue required="true" variableLength="false">String[]</command:parameterValue>
<dev:type>
Expand Down Expand Up @@ -14603,10 +14616,23 @@ If not specified, it will try to use `$global:OPENAI_ORGANIZATION` or `$env:OPEN
</command:syntaxItem>
</command:syntax>
<command:parameters>
<command:parameter required="true" variableLength="true" globbing="false" pipelineInput="True (ByValue)" position="1" aliases="Input">
<command:parameter required="false" variableLength="true" globbing="false" pipelineInput="True (ByValue)" position="1" aliases="Input">
<maml:name>Text</maml:name>
<maml:description>
<maml:para>(Required) The input text to classify.</maml:para>
<maml:para>A string of text to classify for moderation.</maml:para>
</maml:description>
<command:parameterValue required="true" variableLength="false">String[]</command:parameterValue>
<dev:type>
<maml:name>String[]</maml:name>
<maml:uri />
</dev:type>
<dev:defaultValue>None</dev:defaultValue>
</command:parameter>
<command:parameter required="false" variableLength="true" globbing="false" pipelineInput="false" position="named" aliases="none">
<maml:name>Images</maml:name>
<maml:description>
<maml:para>An array of images to passing the model. You can specifies local image file or remote url.
</maml:para>
</maml:description>
<command:parameterValue required="true" variableLength="false">String[]</command:parameterValue>
<dev:type>
Expand Down Expand Up @@ -14717,7 +14743,7 @@ If not specified, it will try to use `$global:OPENAI_ORGANIZATION` or `$env:OPEN
<command:example>
<maml:title>-------------------------- Example 1 --------------------------</maml:title>
<dev:code>PS C:\&gt; $Result = Request-Moderation -Text "I want to kill them."
PS C:\&gt; $Result.results.categories
PS C:\&gt; $Result.results[0].categories

sexual : False
hate : False
Expand Down
2 changes: 1 addition & 1 deletion PSOpenAI.psd1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@{
# Version number of this module.
ModuleVersion = '4.5.0'
ModuleVersion = '4.6.0'

# Supported PSEditions
CompatiblePSEditions = 'Core', 'Desktop'
Expand Down

0 comments on commit 66f01d8

Please sign in to comment.