Realtime
  1. Server events
Realtime
  • Realtime Websocket
    • Client events
      • session.update
      • input_audio_buffer.append
      • input_audio_buffer.commit
      • input_audio_buffer.clear
      • conversation.item.create
      • conversation.item.truncate
      • conversation.item.delete
      • response.create
      • response.cancel
    • Server events
      • error
      • conversation.item.input_audio_transcription.completed
      • conversation.item.input_audio_transcription.failed
      • conversation.item.truncated
      • conversation.item.deleted
      • input_audio_buffer.committed
      • input_audio_buffer.cleared
      • input_audio_buffer.speech_started
      • input_audio_buffer.speech_stopped
      • response.created
      • response.done
      • response.output_item.added
      • response.output_item.done
      • response.content_part.added
      • response.content_part.done
      • response.text.delta
      • response.text.done
      • response.audio_transcript.delta
      • response.audio_transcript.done
      • response.audio.delta
      • response.audio.done
      • response.function_call_arguments.delta
      • response.function_call_arguments.done
      • rate_limits.updated
      • conversation.created
      • conversation.item.created
      • session.created
      • session.updated
  1. Server events

response.content_part.done

开发中
wss://api.openai.com/v1/realtime
Returned when a content part is done streaming in an assistant message item. Also emitted when a Response is interrupted, incomplete, or cancelled.

请求参数

Query 参数
event_id
string 
可选
The unique ID of the server event.
示例值:
event_3940
type
string 
可选
The event type, must be "response.content_part.done".
示例值:
response.content_part.done
response_id
string 
可选
The ID of the response.
示例值:
resp_001
item_id
string 
可选
The ID of the item to which the content part was added.
示例值:
msg_007
output_index
integer 
可选
The index of the output item in the response.
示例值:
0
content_index
integer 
可选
The index of the content part in the item's content array.
示例值:
0
part
string 
可选
object类型,以下为其中参数。The content part that was added.
type1
string 
可选
The content type ("text", "audio").
text
string 
可选
The text content (if type is "text").
audio
string 
可选
Base64-encoded audio data (if type is "audio").
transcript
string 
可选
The transcript of the audio (if type is "audio").
Header 参数
Authorization
string 
可选
示例值:
Bearer YOUR_API_KEY
OpenAI-Beta
string 
可选
示例值:
realtime=v1
上一页
response.content_part.added
下一页
response.text.delta
Built with