Skip to content

Commit

Permalink
added deserialize
Browse files Browse the repository at this point in the history
  • Loading branch information
huevosabio committed Nov 4, 2024
1 parent 9ea319b commit a33fc86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/v1/embedding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub struct EmbeddingData {
pub index: i32,
}

#[derive(Debug, Serialize, Clone)]
#[derive(Debug, Serialize, Clone, Deserialize)]
pub struct EmbeddingRequest {
pub model: String,
pub input: String,
Expand Down
2 changes: 1 addition & 1 deletion src/v1/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pub struct ImageData {
pub url: String,
}

#[derive(Debug, Serialize, Clone)]
#[derive(Debug, Serialize, Clone, Deserialize)]
pub struct ImageGenerationRequest {
pub prompt: String,
#[serde(skip_serializing_if = "Option::is_none")]
Expand Down

0 comments on commit a33fc86

Please sign in to comment.