Skip to content

Commit

Permalink
Support additional headers
Browse files Browse the repository at this point in the history
  • Loading branch information
johnd0e committed Apr 17, 2024
1 parent 08128b9 commit 3c82d66
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions openai/init.moon
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,10 @@ class OpenAI
"Authorization": "Bearer #{@api_key}"
}

if @headers
for k,v in pairs @headers
headers[k] = v

if more_headers
for k,v in pairs more_headers
headers[k] = v
Expand Down

0 comments on commit 3c82d66

Please # to comment.