Skip to content

Commit dd3d0da

Browse files
committed
If being used for Groq, skip OpenAI-Organization header
1 parent 0a897ba commit dd3d0da

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
/.yardoc
1515
/_yardoc/
1616
/doc/
17-
17+
/TAGS
1818

1919
# Used by dotenv library to load environment variables.
2020
.env

lib/openai/http_headers.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def openai_headers
1919
"Content-Type" => "application/json",
2020
"Authorization" => "Bearer #{@access_token}",
2121
"OpenAI-Organization" => @organization_id
22-
}
22+
}.compact
2323
end
2424

2525
def azure_headers

0 commit comments

Comments
 (0)