From 312dfb64027671bd34b335e7fd9975131e81b6e2 Mon Sep 17 00:00:00 2001 From: chengxs Date: Fri, 22 Dec 2023 07:47:02 +0000 Subject: [PATCH] headers to lowercase --- src/Responses/Meta/MetaInformation.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Responses/Meta/MetaInformation.php b/src/Responses/Meta/MetaInformation.php index 0a1d3c62..c1c04b62 100644 --- a/src/Responses/Meta/MetaInformation.php +++ b/src/Responses/Meta/MetaInformation.php @@ -28,6 +28,7 @@ private function __construct( */ public static function from(array $headers): self { + $headers = array_change_key_case($headers, CASE_LOWER); $requestId = $headers['x-request-id'][0] ?? null; $openai = MetaInformationOpenAI::from([