Make content role optional
This commit is contained in:
@@ -4,7 +4,7 @@ use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct Content {
|
||||
pub role: String,
|
||||
pub role: Option<String>,
|
||||
pub parts: Option<Vec<Part>>,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user