From d4b72b89dfa1e0fea19f9d4c16707122dd906c2e Mon Sep 17 00:00:00 2001 From: twitchard Date: Tue, 8 Apr 2025 12:39:49 -0700 Subject: [PATCH 1/3] Add X-Hume-Client-... headers --- src/hume/core/client_wrapper.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/hume/core/client_wrapper.py b/src/hume/core/client_wrapper.py index 90494a17..edc0a60e 100644 --- a/src/hume/core/client_wrapper.py +++ b/src/hume/core/client_wrapper.py @@ -1,9 +1,9 @@ -# This file was auto-generated by Fern from our API Definition. - import typing import httpx +from importlib.metadata import version + from .http_client import AsyncHttpClient, HttpClient @@ -16,8 +16,11 @@ def __init__(self, *, api_key: typing.Optional[str] = None, base_url: str, timeo def get_headers(self, include_auth: bool = True) -> typing.Dict[str, str]: headers: typing.Dict[str, str] = { "X-Fern-Language": "Python", - "X-Fern-SDK-Name": "hume", - "X-Fern-SDK-Version": "1.0.0", + "X-Fern-SDK-Name": "hume_python_sdk", + "X-Fern-SDK-Version": version("hume"), + "X-Fern-Language": "Python", + "X-Hume-Client-Name": "python_sdk", + "X-Hume-Client-Version": version("hume"), } if self.api_key is not None and include_auth: headers["X-Hume-Api-Key"] = self.api_key From f9a8124a38081c8b2e293b8b170e368df876f7bd Mon Sep 17 00:00:00 2001 From: Zachary Greathouse <26175515+zgreathouse@users.noreply.github.com> Date: Tue, 8 Apr 2025 12:44:46 -0700 Subject: [PATCH 2/3] Update src/hume/core/client_wrapper.py --- src/hume/core/client_wrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hume/core/client_wrapper.py b/src/hume/core/client_wrapper.py index edc0a60e..8ed982ea 100644 --- a/src/hume/core/client_wrapper.py +++ b/src/hume/core/client_wrapper.py @@ -16,7 +16,7 @@ def __init__(self, *, api_key: typing.Optional[str] = None, base_url: str, timeo def get_headers(self, include_auth: bool = True) -> typing.Dict[str, str]: headers: typing.Dict[str, str] = { "X-Fern-Language": "Python", - "X-Fern-SDK-Name": "hume_python_sdk", + "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": version("hume"), "X-Fern-Language": "Python", "X-Hume-Client-Name": "python_sdk", From 19f59aaea0433cd71a0fa27f2c04abb747effc55 Mon Sep 17 00:00:00 2001 From: Richard Marmorstein Date: Tue, 8 Apr 2025 12:45:11 -0700 Subject: [PATCH 3/3] Update src/hume/core/client_wrapper.py --- src/hume/core/client_wrapper.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/hume/core/client_wrapper.py b/src/hume/core/client_wrapper.py index 8ed982ea..800a24f7 100644 --- a/src/hume/core/client_wrapper.py +++ b/src/hume/core/client_wrapper.py @@ -18,7 +18,6 @@ def get_headers(self, include_auth: bool = True) -> typing.Dict[str, str]: "X-Fern-Language": "Python", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": version("hume"), - "X-Fern-Language": "Python", "X-Hume-Client-Name": "python_sdk", "X-Hume-Client-Version": version("hume"), }