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
9
9
private function __construct (
10
10
public readonly ?int $ audioTokens ,
11
11
public readonly int $ reasoningTokens ,
12
- public readonly int $ acceptedPredictionTokens ,
13
- public readonly int $ rejectedPredictionTokens
12
+ public readonly ? int $ acceptedPredictionTokens ,
13
+ public readonly ? int $ rejectedPredictionTokens
14
14
) {}
15
15
16
16
/**
@@ -21,8 +21,8 @@ public static function from(array $attributes): self
21
21
return new self (
22
22
$ attributes ['audio_tokens ' ] ?? null ,
23
23
$ 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 ,
26
26
);
27
27
}
28
28
You can’t perform that action at this time.
0 commit comments