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.output_item.done

开发中
wss://api.openai.com/v1/realtime
Returned when an Item is done streaming. Also emitted when a Response is interrupted, incomplete, or cancelled.

请求参数

Query 参数
event_id
string 
可选
The unique ID of the server event.
示例值:
event_3536
type
string 
可选
The event type, must be "response.output_item.done".
示例值:
response.output_item.donene
response_id
string 
可选
The ID of the response to which the item belongs.
示例值:
resp_001
output_index
string 
可选
The index of the output item in the response.
示例值:
0
item
string 
可选
object类型,以下为其中参数
id
string 
可选
The unique ID of the item.
示例值:
msg_007
object
string 
可选
The object type, must be "realtime.item".
示例值:
realtime.item
type1
string 
可选
为type,The type of the item ("message", "function_call", "function_call_output").
示例值:
message
status
string 
可选
The final status of the item ("completed", "incomplete").
示例值:
completed
role
string 
可选
The role associated with the item ("assistant").
示例值:
assistant
content
array[string]
可选
The content of the item.
示例值:
["type","text","audio","transcript"]
Header 参数
Authorization
string 
可选
示例值:
Bearer YOUR_API_KEY
OpenAI-Beta
string 
可选
示例值:
realtime=v1
上一页
response.output_item.added
下一页
response.content_part.added
Built with