Skip to content

Commit

Permalink
ChatChoice finish_reason can be null (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
ming08108 committed Mar 4, 2023
1 parent bda6529 commit 411ae1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion async-openai/src/types/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ pub struct CreateChatCompletionRequest {
pub struct ChatChoice {
pub index: u32,
pub message: ChatCompletionResponseMessage,
pub finish_reason: String,
pub finish_reason: Option<String>,
}

#[derive(Debug, Deserialize)]
Expand Down

0 comments on commit 411ae1e

Please sign in to comment.