chore: update the response of new chat (#231)

This commit is contained in:
Medcl
2025-03-03 21:44:22 +08:00
committed by GitHub
parent 8e6d081e28
commit 24a915fb31

View File

@@ -1,6 +1,25 @@
use serde::{Deserialize, Serialize};
use serde_json::Value;
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ChatRequestMessage {
pub message: Option<String>,
}
pub struct NewChatResponse {
pub _id: String,
pub _source: Source,
pub result: String,
pub payload: Option<Value>,
}
#[derive(Debug, Serialize, Deserialize)]
pub struct Source {
pub id: String,
pub created: String,
pub updated: String,
pub status: String,
pub title: Option<String>,
pub summary: Option<String>,
pub manually_renamed_title: bool,
}