Make content role optional

This commit is contained in:
2024-06-09 10:07:00 +01:00
parent 8e2c7dc41b
commit c4e9f78ec9
5 changed files with 8 additions and 8 deletions

View File

@@ -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>>,
}