fix: make public
This commit is contained in:
parent
81fb1c96d7
commit
06f1a761a1
@ -3,7 +3,7 @@ use ratmom::{prelude::*, Request};
|
|||||||
use serde::{Serialize, Deserialize};
|
use serde::{Serialize, Deserialize};
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, Debug)]
|
#[derive(Serialize, Deserialize, Debug)]
|
||||||
struct Delta {
|
pub struct Delta {
|
||||||
pub role: String,
|
pub role: String,
|
||||||
pub id: String,
|
pub id: String,
|
||||||
pub parent_message_id: String,
|
pub parent_message_id: String,
|
||||||
@ -13,7 +13,7 @@ struct Delta {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, Debug)]
|
#[derive(Serialize, Deserialize, Debug)]
|
||||||
struct Detail {
|
pub struct Detail {
|
||||||
pub id: String,
|
pub id: String,
|
||||||
pub object: String,
|
pub object: String,
|
||||||
pub created: i64,
|
pub created: i64,
|
||||||
@ -22,14 +22,14 @@ struct Detail {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, Debug)]
|
#[derive(Serialize, Deserialize, Debug)]
|
||||||
struct Choice {
|
pub struct Choice {
|
||||||
pub delta: DeltaChoice,
|
pub delta: DeltaChoice,
|
||||||
pub index: i64,
|
pub index: i64,
|
||||||
pub finish_reason: String,
|
pub finish_reason: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, Debug)]
|
#[derive(Serialize, Deserialize, Debug)]
|
||||||
struct DeltaChoice {
|
pub struct DeltaChoice {
|
||||||
pub content: String,
|
pub content: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user