Skip to content

Commit

Permalink
Merge pull request #12 from Sortium-io/fix/optional-fields-serialization
Browse files Browse the repository at this point in the history
fix: optional fields serialization
  • Loading branch information
jctosta authored Feb 6, 2023
2 parents 546c187 + 29c457b commit 39991f7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/openai/completions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ impl Default for CompletionsInput {
frequency_penalty: Some(0.0),
presence_penalty: Some(0.0),
stop: None,
n: Some(1),
stream: Some(false),
logprobs: Some(0),
echo: Some(false),
best_of: Some(1),
n: None,
stream: None,
logprobs: None,
echo: None,
best_of: None,
logit_bias: None,
user: None,
}
Expand Down

0 comments on commit 39991f7

Please sign in to comment.