File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ final class CreateResponseUsageCompletionTokensDetails
99 private function __construct (
1010 public readonly ?int $ audioTokens ,
1111 public readonly int $ reasoningTokens ,
12- public readonly int $ acceptedPredictionTokens ,
13- public readonly int $ rejectedPredictionTokens
12+ public readonly ? int $ acceptedPredictionTokens ,
13+ public readonly ? int $ rejectedPredictionTokens
1414 ) {}
1515
1616 /**
@@ -21,8 +21,8 @@ public static function from(array $attributes): self
2121 return new self (
2222 $ attributes ['audio_tokens ' ] ?? null ,
2323 $ attributes ['reasoning_tokens ' ],
24- $ attributes ['accepted_prediction_tokens ' ],
25- $ attributes ['rejected_prediction_tokens ' ],
24+ $ attributes ['accepted_prediction_tokens ' ] ?? null ,
25+ $ attributes ['rejected_prediction_tokens ' ] ?? null ,
2626 );
2727 }
2828
You can’t perform that action at this time.
0 commit comments