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