fix GPT3 messages not loading
This commit is contained in:
parent
c8537857e2
commit
ade011120f
|
@ -31,10 +31,12 @@ struct ChatPayload {
|
||||||
|
|
||||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||||
struct ChatChunk {
|
struct ChatChunk {
|
||||||
pub role: String,
|
pub role: Option<String>,
|
||||||
pub message: String,
|
pub message: String,
|
||||||
pub created: u64,
|
pub created: u64,
|
||||||
pub action: String,
|
pub action: String,
|
||||||
|
pub id: Option<String>,
|
||||||
|
pub model: Option<String>
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||||
|
|
Loading…
Reference in New Issue