Skip to content

Commit

Permalink
feat: add user-agent header
Browse files Browse the repository at this point in the history
Ref: #161

Signed-off-by: Tomas Dvorak <toomas2d@gmail.com>
  • Loading branch information
Tomas2D committed Sep 22, 2023
1 parent 30284a0 commit 33314e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/genai/services/request_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def _metadata(
headers = {
"Authorization": f"Bearer {key}",
"x-request-origin": f"python-sdk/{version}",
"user-agent": f"python-sdk/{version}",
}

# NOTE: discuss with team if we want to keep like this or try another approach
Expand Down

0 comments on commit 33314e5

Please sign in to comment.