From 61e923862dc28dc937a3508a8d3dd61ca1302a9e Mon Sep 17 00:00:00 2001 From: ZongLiang <649236041@qq.com> Date: Wed, 8 Nov 2023 13:59:38 +0800 Subject: [PATCH] Update OpenAi.php --- src/OpenAi.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OpenAi.php b/src/OpenAi.php index ed38d98..d9c4b95 100644 --- a/src/OpenAi.php +++ b/src/OpenAi.php @@ -482,7 +482,7 @@ public function setHeader(array $header) { if ($header) { foreach ($header as $key => $value) { - $this->headers[$key] = $value; + $this->headers[] = $key . ': ' . $value; } } }