Skip to content

Commit 8f6d4ea

Browse files
author
Thorb Jiang
committed
Add compatibility for aliyun LLM APIs
1 parent 17d1a23 commit 8f6d4ea

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Responses/Files/CreateResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public static function from(array $attributes, MetaInformation $meta): self
5454
$attributes['filename'],
5555
$attributes['purpose'],
5656
$attributes['status'],
57-
$attributes['status_details'],
57+
$attributes['status_details'] ?? null,
5858
$meta,
5959
);
6060
}

src/Responses/Files/RetrieveResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public static function from(array $attributes, MetaInformation $meta): self
5454
$attributes['filename'],
5555
$attributes['purpose'],
5656
$attributes['status'],
57-
$attributes['status_details'],
57+
$attributes['status_details'] ?? null,
5858
$meta,
5959
);
6060
}

src/Responses/FineTunes/RetrieveResponseFile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public static function from(array $attributes): self
4646
$attributes['filename'],
4747
$attributes['purpose'],
4848
$attributes['status'],
49-
$attributes['status_details'],
49+
$attributes['status_details'] ?? null,
5050
);
5151
}
5252

0 commit comments

Comments
 (0)