Make fields from TextEmbeddingResult and TextEmbeddingStatistics public
This commit is contained in:
@@ -32,12 +32,12 @@ pub struct TextEmbeddingPrediction {
|
|||||||
|
|
||||||
#[derive(Clone, Debug, Serialize, Deserialize)]
|
#[derive(Clone, Debug, Serialize, Deserialize)]
|
||||||
pub struct TextEmbeddingResult {
|
pub struct TextEmbeddingResult {
|
||||||
statistics: TextEmbeddingStatistics,
|
pub statistics: TextEmbeddingStatistics,
|
||||||
values: Vec<f32>,
|
pub values: Vec<f32>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Debug, Serialize, Deserialize)]
|
#[derive(Clone, Debug, Serialize, Deserialize)]
|
||||||
pub struct TextEmbeddingStatistics {
|
pub struct TextEmbeddingStatistics {
|
||||||
truncated: bool,
|
pub truncated: bool,
|
||||||
token_count: u32,
|
pub token_count: u32,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user