Skip to content

Commit aef49c3

Browse files
committed
Non-OpenAI APIs that implement a simmilar interface don't always include the output[].content[].annotations path
1 parent 74763a0 commit aef49c3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

async-openai/src/types/responses/response.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1522,6 +1522,7 @@ pub struct ResponseLogProb {
15221522
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
15231523
pub struct OutputTextContent {
15241524
/// The annotations of the text output.
1525+
#[serde(default)]
15251526
pub annotations: Vec<Annotation>,
15261527
pub logprobs: Option<Vec<LogProb>>,
15271528
/// The text output from the model.

0 commit comments

Comments
 (0)