fix chat
This commit is contained in:
@@ -144,6 +144,7 @@ struct GetMessagesParams {
|
|||||||
|
|
||||||
#[derive(Serialize)]
|
#[derive(Serialize)]
|
||||||
struct GetMessagesResp {
|
struct GetMessagesResp {
|
||||||
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
cursor: Option<String>,
|
cursor: Option<String>,
|
||||||
messages: Vec<serde_json::Value>,
|
messages: Vec<serde_json::Value>,
|
||||||
}
|
}
|
||||||
@@ -175,6 +176,7 @@ struct ListConvosParams {
|
|||||||
|
|
||||||
#[derive(Serialize)]
|
#[derive(Serialize)]
|
||||||
struct ListConvosResp {
|
struct ListConvosResp {
|
||||||
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
cursor: Option<String>,
|
cursor: Option<String>,
|
||||||
convos: Vec<ConvoView>,
|
convos: Vec<ConvoView>,
|
||||||
}
|
}
|
||||||
@@ -225,6 +227,7 @@ struct GetLogParams {
|
|||||||
|
|
||||||
#[derive(Serialize)]
|
#[derive(Serialize)]
|
||||||
struct GetLogResp {
|
struct GetLogResp {
|
||||||
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
cursor: Option<String>,
|
cursor: Option<String>,
|
||||||
logs: Vec<serde_json::Value>,
|
logs: Vec<serde_json::Value>,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user