mirror of
https://github.com/mii443/openai-api-rs.git
synced 2025-08-22 15:15:34 +00:00
Merge branch 'dongri:main' into main
This commit is contained in:
@ -91,6 +91,24 @@ pub struct ConversationItemDeleted {
|
||||
pub item_id: String,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize, Clone)]
|
||||
pub struct OutputAudioBufferStarted {
|
||||
pub event_id: String,
|
||||
pub response_id: String,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize, Clone)]
|
||||
pub struct OutputAudioBufferStopped {
|
||||
pub event_id: String,
|
||||
pub response_id: String,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize, Clone)]
|
||||
pub struct OutputAudioBufferCleared {
|
||||
pub event_id: String,
|
||||
pub response_id: String,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize, Clone)]
|
||||
pub struct ResponseCreated {
|
||||
pub event_id: String,
|
||||
@ -255,6 +273,12 @@ pub enum ServerEvent {
|
||||
ConversationItemTruncated(ConversationItemTruncated),
|
||||
#[serde(rename = "conversation.item.deleted")]
|
||||
ConversationItemDeleted(ConversationItemDeleted),
|
||||
#[serde(rename = "output_audio_buffer.started")]
|
||||
OutputAudioBufferStarted(OutputAudioBufferStarted),
|
||||
#[serde(rename = "output_audio_buffer.stopped")]
|
||||
OutputAudioBufferStopped(OutputAudioBufferStopped),
|
||||
#[serde(rename = "output_audio_buffer.cleared")]
|
||||
OutputAudioBufferCleared(OutputAudioBufferCleared),
|
||||
#[serde(rename = "response.created")]
|
||||
ResponseCreated(ResponseCreated),
|
||||
#[serde(rename = "response.done")]
|
||||
|
@ -234,8 +234,9 @@ pub enum ResponseStatusDetail {
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize, Clone)]
|
||||
pub struct FailedError {
|
||||
pub code: String,
|
||||
pub message: String,
|
||||
pub code: Option<String>,
|
||||
pub message: Option<String>,
|
||||
pub r#type: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize, Clone)]
|
||||
|
Reference in New Issue
Block a user