Skip to content

Commit 3b59e1b

Browse files
committed
Rename -Format parameter to -ResponseFormat for consistency across commands
1 parent 0efdc27 commit 3b59e1b

20 files changed

Lines changed: 118 additions & 109 deletions

Docs/New-Assistant.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ New-Assistant
3131
[-Temperature <Double>]
3232
[-TopP <Double>]
3333
[-MetaData <IDictionary>]
34-
[-Format <Object>]
34+
[-ResponseFormat <Object>]
3535
[-JsonSchema <String>]
3636
[-TimeoutSec <Int32>]
3737
[-MaxRetryCount <Int32>]
@@ -216,7 +216,7 @@ Required: False
216216
Position: Named
217217
```
218218

219-
### -Format
219+
### -ResponseFormat
220220
Specifies the format that the model must output.
221221
- `auto` is default.
222222
- `json_object` enables JSON mode, which ensures the message the model generates is valid JSON.
@@ -232,7 +232,7 @@ Position: Named
232232

233233
### -JsonSchema
234234
Specifies an object or data structure to represent the JSON Schema that the model should be constrained to follow.
235-
Required if `json_schema` is specified for `-Format`. Otherwise, it is ignored.
235+
Required if `json_schema` is specified for `-ResponseFormat`. Otherwise, it is ignored.
236236

237237
```yaml
238238
Type: String

Docs/Request-AudioSpeech.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Request-AudioSpeech
1919
[-Model <String>]
2020
[-Voice <String>]
2121
[-Instructions <String>]
22-
[-Format <String>]
22+
[-ResponseFormat <String>]
2323
-OutFile <String>
2424
[-Speed <Double>]
2525
[-TimeoutSec <Int32>]
@@ -97,7 +97,7 @@ Required: True
9797
Position: Named
9898
```
9999

100-
### -Format
100+
### -ResponseFormat
101101
The format of audio. Supported formats are `mp3`, `opus`, `aac`, `flac`, `wav`, and `pcm`
102102

103103
```yaml

Docs/Request-AudioTranscription.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Request-AudioTranscription
1818
[[-File] <String>]
1919
[-Model <String>]
2020
[-Prompt <String>]
21-
[-Format <String>]
21+
[-ResponseFormat <String>]
2222
[-Temperature <Double>]
2323
[-Include <String[]>]
2424
[-TimestampGranularities <String[]>]
@@ -42,7 +42,7 @@ https://platform.openai.com/docs/guides/speech-to-text/speech-to-text
4242

4343
### Example 1: Audio-to-Text
4444
```PowerShell
45-
PS C:\> Request-AudioTranscription -File C:\sample\audio.mp3 -Format text
45+
PS C:\> Request-AudioTranscription -File C:\sample\audio.mp3 -ResponseFormat text
4646
```
4747
```
4848
Hello, I am david.
@@ -82,7 +82,7 @@ Required: False
8282
Position: Named
8383
```
8484

85-
### -Format
85+
### -ResponseFormat
8686
The format of the transcript output, in one of these options: `json`, `text`, `srt`, `verbose_json`, or `vtt`.
8787
The default value is `text`.
8888

@@ -106,7 +106,7 @@ Position: Named
106106

107107
### -Include
108108
Additional information to include in the transcription response.
109-
`logprobs` only works with `-Format` set to `json` and only with the models `gpt-4o-transcribe` and `gpt-4o-mini-transcribe`
109+
`logprobs` only works with `-ResponseFormat` set to `json` and only with the models `gpt-4o-transcribe` and `gpt-4o-mini-transcribe`
110110

111111
```yaml
112112
Type: String[]

Docs/Request-AudioTranslation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Request-AudioTranslation
1717
[[-File] <String>]
1818
[-Model <String>]
1919
[-Prompt <String>]
20-
[-Format <String>]
20+
[-ResponseFormat <String>]
2121
[-Temperature <Double>]
2222
[-TimeoutSec <Int32>]
2323
[-MaxRetryCount <Int32>]
@@ -35,7 +35,7 @@ https://platform.openai.com/docs/guides/speech-to-text/speech-to-text
3535

3636
### Example 1: Japanese speech to English text.
3737
```PowerShell
38-
Request-AudioTranslation -File C:\sample\japanese.mp3 -Format text
38+
Request-AudioTranslation -File C:\sample\japanese.mp3 -ResponseFormat text
3939
```
4040
```
4141
Hello, My name is tanaka yoshio.
@@ -75,7 +75,7 @@ Required: False
7575
Position: Named
7676
```
7777

78-
### -Format
78+
### -ResponseFormat
7979
The format of the transcript output, in one of these options: `json`, `text`, `srt`, `verbose_json`, or `vtt`.
8080
The default value is `text`.
8181

Docs/Request-ChatCompletion.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Request-ChatCompletion
5454
[-LogitBias <IDictionary>]
5555
[-LogProbs <Boolean>]
5656
[-TopLogProbs <UInt16>]
57-
[-Format <Object>]
57+
[-ResponseFormat <Object>]
5858
[-JsonSchema <String>]
5959
[-Seed <Int64>]
6060
[-ServiceTier <String>]
@@ -532,7 +532,7 @@ Required: False
532532
Position: Named
533533
```
534534

535-
### -Format
535+
### -ResponseFormat
536536
Specifies the format that the model must output.
537537
- `text` is default.
538538
- `json_object` enables JSON mode, which ensures the message the model generates is valid JSON.
@@ -548,7 +548,7 @@ Position: Named
548548

549549
### -JsonSchema
550550
Specifies an object or data structure to represent the JSON Schema that the model should be constrained to follow.
551-
Required if `json_schema` is specified for `-Format`. Otherwise, it is ignored.
551+
Required if `json_schema` is specified for `-ResponseFormat`. Otherwise, it is ignored.
552552

553553
```yaml
554554
Type: String

Docs/Request-Embeddings.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Creates an embedding vector representing the input text.
1616
Request-Embeddings
1717
[-Text] <String[]>
1818
[-Model <String>]
19-
[-Format <String>]
19+
[-EncodingFormat <String>]
2020
[-Dimensions <Int32>]
2121
[-User <String>]
2222
[-AsBatch]
@@ -72,12 +72,13 @@ Position: Named
7272
Default value: text-embedding-ada-002
7373
```
7474

75-
### -Format
75+
### -EncodingFormat
7676
The format to return the embeddings in. Can be either `float` or `base64`
7777
The default value is `float`.
7878

7979
```yaml
8080
Type: String
81+
Aliases: encoding_format
8182
Required: False
8283
Position: Named
8384
Default value: float

Docs/Request-ImageVariation.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Request-ImageVariation
1717
[-Image] <String>
1818
[-NumberOfImages <UInt16>]
1919
[-Size <String>]
20-
[-Format <String>]
20+
[-ResponseFormat <String>]
2121
[-User <String>]
2222
[-TimeoutSec <Int32>]
2323
[-MaxRetryCount <Int32>]
@@ -61,7 +61,7 @@ Request-ImageVariation -Image C:\cupcake.png -OutFile C:\cupcake2.png -Size 256x
6161

6262
### Example 2: Creates a variation of a given image, then output as base64 string.
6363
```PowerShell
64-
Request-ImageVariation -Image C:\cupcake.png -Format "base64"
64+
Request-ImageVariation -Image C:\cupcake.png -ResponseFormat "base64"
6565
```
6666
```
6767
iVBORw0KGgoAAAANSUhEUgAABAAAAAQACAIAAADwf7zUAAAAaGV......
@@ -107,7 +107,7 @@ Position: Named
107107
Default value: 1024x1024
108108
```
109109

110-
### -Format
110+
### -ResponseFormat
111111
The format in which the generated images are returned.
112112
Must be one of `url`, `base64` or `byte`.
113113

@@ -202,9 +202,9 @@ Position: Named
202202

203203
## OUTPUTS
204204

205-
### Format = url : string or array of string
206-
### Format = base64 : Generated image data represented in base64 string.
207-
### Format = byte : Byte array of generated image.
205+
### ResponseFormat = url : string or array of string
206+
### ResponseFormat = base64 : Generated image data represented in base64 string.
207+
### ResponseFormat = byte : Byte array of generated image.
208208
### OutFile : Nothing.
209209
## NOTES
210210

Docs/Set-Assistant.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Set-Assistant
3232
[-Temperature <Double>]
3333
[-TopP <Double>]
3434
[-MetaData <IDictionary>]
35-
[-Format <Object>]
35+
[-ResponseFormat <Object>]
3636
[-JsonSchema <String>]
3737
[-TimeoutSec <Int32>]
3838
[-MaxRetryCount <Int32>]
@@ -228,7 +228,7 @@ Required: False
228228
Position: Named
229229
```
230230

231-
### -Format
231+
### -ResponseFormat
232232
Specifies the format that the model must output.
233233
- `auto` is default.
234234
- `json_object` enables JSON mode, which ensures the message the model generates is valid JSON.
@@ -244,7 +244,7 @@ Position: Named
244244

245245
### -JsonSchema
246246
Specifies an object or data structure to represent the JSON Schema that the model should be constrained to follow.
247-
Required if `json_schema` is specified for `-Format`. Otherwise, it is ignored.
247+
Required if `json_schema` is specified for `-ResponseFormat`. Otherwise, it is ignored.
248248

249249
```yaml
250250
Type: String

Docs/Start-ThreadRun.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Start-ThreadRun
3939
[-MetaData <IDictionary>]
4040
[-Temperature <Double>]
4141
[-Stream]
42-
[-Format <Object>]
42+
[-ResponseFormat <Object>]
4343
[-JsonSchema <String>]
4444
[-TimeoutSec <Int32>]
4545
[-MaxRetryCount <Int32>]
@@ -76,7 +76,7 @@ Start-ThreadRun
7676
[-MetaData <IDictionary>]
7777
[-Temperature <Double>]
7878
[-Stream]
79-
[-Format <String>]
79+
[-ResponseFormat <String>]
8080
[-TimeoutSec <Int32>]
8181
[-MaxRetryCount <Int32>]
8282
[-ApiBase <Uri>]
@@ -278,7 +278,7 @@ Position: Named
278278
Default value: False
279279
```
280280

281-
### -Format
281+
### -ResponseFormat
282282
Specifies the format that the model must output.
283283
- `default` will only outputs text message.
284284
- `json_object` enables JSON mode, which ensures the message the model generates is valid JSON.
@@ -294,7 +294,7 @@ Position: Named
294294

295295
### -JsonSchema
296296
Specifies an object or data structure to represent the JSON Schema that the model should be constrained to follow.
297-
Required if `json_schema` is specified for `-Format`. Otherwise, it is ignored.
297+
Required if `json_schema` is specified for `-ResponseFormat`. Otherwise, it is ignored.
298298

299299
```yaml
300300
Type: String

Guides/How_to_use_StructuredOutputs.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ $Result = Request-ChatCompletion `
3535
-Model "gpt-4o-2024-08-06" `
3636
-SystemMessage "You are a helpful math tutor. Guide the user through the solution step by step." `
3737
-Message "How can I solve 8x + 7 = 31" `
38-
-Format ([MathReasoning])
38+
-ResponseFormat ([MathReasoning])
3939
```
4040

41-
The point is that the `-Format` parameter specifies the defined PowerShell class type `[MathReasoning]`.
41+
The point is that the `-ResponseFormat` parameter specifies the defined PowerShell class type `[MathReasoning]`.
4242
This instructs the AI model to return an object of this type using Structured Ouputs mode.
4343

4444
PSOpenAI deserialize the response and sets the `Answer` property to an object of the specified type.
@@ -153,7 +153,7 @@ $Result = Request-ChatCompletion `
153153
-Model "gpt-4o-2024-08-06" `
154154
-SystemMessage "You are an assistant who reads the meeting information from messages." `
155155
-Message $TextMessage `
156-
-Format ([MeetingEvent])
156+
-ResponseFormat ([MeetingEvent])
157157
158158
$Result.Answer[0]
159159
#> Topics : {Details of the contract, Potential changes and price adjustments}
@@ -174,7 +174,7 @@ $Result.Answer[0].Attendees
174174
## Use Structured Outputs with own JSON schema
175175

176176
If using the built-in parser is not suitable, you can specify your own JSON schema directly.
177-
Specify `"json_schema"` to `-Format` and a JSON schema string to `-JsonSchema`.
177+
Specify `"json_schema"` to `-ResponseFormat` and a JSON schema string to `-JsonSchema`.
178178

179179
Please refer to the official OpenAI guide to creating your own JSON schema.
180180
https://platform.openai.com/docs/guides/structured-outputs/supported-schemas
@@ -212,7 +212,7 @@ $ownJsonSchema = @'
212212
$Result = Request-ChatCompletion `
213213
-Model "gpt-4o-mini" `
214214
-Message "9.11 and 9.9 -- which is bigger?" `
215-
-Format "json_schema" `
215+
-ResponseFormat "json_schema" `
216216
-JsonSchema $ownJsonSchema
217217
```
218218

0 commit comments

Comments
 (0)