diff --git a/src/Contracts/Resources/FilesContract.php b/src/Contracts/Resources/FilesContract.php index cf748a77..c697768e 100644 --- a/src/Contracts/Resources/FilesContract.php +++ b/src/Contracts/Resources/FilesContract.php @@ -14,7 +14,7 @@ interface FilesContract * * @see https://platform.openai.com/docs/api-reference/files/list */ - public function list(): ListResponse; + public function list(array $parameters = []): ListResponse; /** * Returns information about a specific file. diff --git a/src/Resources/Files.php b/src/Resources/Files.php index 6f5490e1..1c25cdfd 100644 --- a/src/Resources/Files.php +++ b/src/Resources/Files.php @@ -21,9 +21,9 @@ final class Files implements FilesContract * * @see https://platform.openai.com/docs/api-reference/files/list */ - public function list(): ListResponse + public function list(array $parameters = []): ListResponse { - $payload = Payload::list('files'); + $payload = Payload::list('files', $parameters); /** @var Response|string|null}>}> $response */ $response = $this->transporter->requestObject($payload);