external help file | Module Name | online version | schema |
---|---|---|---|
PSOpenAI-help.xml |
PSOpenAI |
2.0.0 |
Instruct the server to generate a response.
Request-RealtimeSessionResponse
[-EventId <String>]
[-Instructions <String>]
[-Modalities <String[]>]
[-Voice <String>]
[-OutputAudioFormat <String>]
[-Temperature <Single>]
[-MaxOutputTokens <Int32>]
Instruct the server to generate a response. When automatic turn detection by the server is enabled, this is usually not necessary. If turn detection is disabled, use this command to request a response from the server.
PS C:\> Request-RealtimeSessionResponse
Optional client-generated ID used to identify this event.
Type: String
Required: False
Position: Named
Instructions for the model.
Type: String
Required: False
Position: Named
Maximum number of output tokens for a single assistant response. Provide an integer between 1 and 4096 to limit output tokens, or -1 for no limitations.
Type: Int32
Required: False
Position: Named
Default value: -1
The set of modalities the model can respond with.
Type: String[]
Accepted values: text, audio
Required: False
Position: Named
The format of output audio. Options are pcm16
, g711_ulaw
, or g711_alaw
.
Type: String
Required: False
Position: Named
Sampling temperature for the model, limited to [0.6, 1.2].
Type: Single
Required: False
Position: Named
The voice the model uses to respond.
Type: String
Required: False
Position: Named
https://platform.openai.com/docs/api-reference/realtime-client-events/response/create