Skip to content

Commit

Permalink
Merge pull request #8 from sixty-nine/fix-models-list
Browse files Browse the repository at this point in the history
Fix models/list - "families" may be null
  • Loading branch information
ArdaGnsrn authored Dec 25, 2024
2 parents 32a926e + f6441fd commit e5a1eaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Responses/Models/ListModelsModelDetailsResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static function from(array $attributes): ListModelsModelDetailsResponse
family: $attributes['family'],
parameterSize: $attributes['parameter_size'],
quantizationLevel: $attributes['quantization_level'],
families: $attributes['families'],
families: $attributes['families'] ?? [],
parentModel: $attributes['parent_model'],
);
}
Expand Down

0 comments on commit e5a1eaf

Please sign in to comment.