Skip to content

Commit

Permalink
fix GPT3 messages not loading
Browse files Browse the repository at this point in the history
  • Loading branch information
b1ek committed May 5, 2024
1 parent c853785 commit ade0111
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@ struct ChatPayload {

#[derive(Debug, Clone, Serialize, Deserialize)]
struct ChatChunk {
pub role: String,
pub role: Option<String>,
pub message: String,
pub created: u64,
pub action: String,
pub id: Option<String>,
pub model: Option<String>
}

#[derive(Debug, Clone, Serialize, Deserialize)]
Expand Down

0 comments on commit ade0111

Please sign in to comment.