diff --git a/src/OpenAi.php b/src/OpenAi.php index 5b06b3c..c71b4d6 100644 --- a/src/OpenAi.php +++ b/src/OpenAi.php @@ -481,8 +481,9 @@ public function setBaseURL(string $customUrl) public function setHeader(array $header) { if ($header) { - [$key, $value] = $header; - $this->headers[$key] = $value; + foreach ($header as $key => $value) { + $this->headers[$key] = $value; + } } }