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

conversation.item.created

开发中
wss://api.openai.com/v1/realtime
Returned when a conversation item is created.

请求参数

Query 参数
event_id
string 
可选
The unique ID of the server event.
示例值:
event_1920
type
string 
可选
The event type, must be "conversation.item.created".
示例值:
conversation.item.created
previous_item_id
string 
可选
The ID of the preceding item.
示例值:
msg_002
item
string 
可选
object类型,以为皆为其中参数
id
string 
可选
The unique ID of the item.
示例值:
msg_003
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 status of the item ("completed", "in_progress", "incomplete").
示例值:
completed
role
string 
可选
The role associated with the item ("user", "assistant", "system").
示例值:
user
content
array[string]
可选
The content of the item.
示例值:
["type","text","audio","transcript"]
call_id
string 
可选
The ID of the function call (for "function_call" items).
name
string 
可选
The name of the function being called.
arguments
string 
可选
The arguments of the function call.
output
string 
可选
The output of the function call (for "function_call_output" items).
Header 参数
Authorization
string 
可选
示例值:
Bearer YOUR_API_KEY
OpenAI-Beta
string 
可选
示例值:
realtime=v1
上一页
conversation.created
下一页
session.created
Built with