mirror of
https://github.com/mii443/openai-api-rs.git
synced 2025-08-22 15:15:34 +00:00
- Update FailedError struct to correct api schema
This commit is contained in:
@ -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