Skip to content

Commit

Permalink
Merge pull request #68 from gouguoyin/patch-2
Browse files Browse the repository at this point in the history
Fix bug
  • Loading branch information
orhanerday authored Mar 8, 2023
2 parents b61e59b + 900821a commit 68c9d9e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/OpenAi.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}

Expand Down

0 comments on commit 68c9d9e

Please sign in to comment.