Skip to content

Commit

Permalink
Fix None is not of type string (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmweis authored Mar 5, 2023
1 parent 5fcfc19 commit e9d27b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions async-openai/src/types/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -771,6 +771,7 @@ pub struct CreateChatCompletionRequest {
pub logit_bias: Option<HashMap<String, serde_json::Value>>, // default: null

/// A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](https://platform.openai.com/docs/guides/safety-best-practices/end-user-ids).
#[serde(skip_serializing_if = "Option::is_none")]
pub user: Option<String>,
}

Expand Down

0 comments on commit e9d27b2

Please sign in to comment.