mirror of
https://github.com/mii443/openai-api-rs.git
synced 2025-08-22 15:15:34 +00:00
Merge pull request #1 from clementine-tech/add-deserialize
added deserialize
This commit is contained in:
@ -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,
|
||||
|
@ -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")]
|
||||
|
Reference in New Issue
Block a user