Skip to content

Commit

Permalink
Send site title and url for rankings
Browse files Browse the repository at this point in the history
  • Loading branch information
obie committed May 30, 2024
1 parent 86fcf13 commit 842b799
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/open_router/http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ def uri(path:)
def headers
{
"Authorization" => "Bearer #{OpenRouter.configuration.access_token}",
"Content-Type" => "application/json"
"Content-Type" => "application/json",
"X-Title" => "OpenRouter Ruby Client",
"HTTP-Referer" => "https://github.com/OlympiaAI/open_router"
}.merge(OpenRouter.configuration.extra_headers)
end

Expand Down
2 changes: 1 addition & 1 deletion lib/open_router/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module OpenRouter
VERSION = "0.3.2"
VERSION = "0.3.3"
end

0 comments on commit 842b799

Please sign in to comment.