Skip to content

Commit 79d9f2c

Browse files
committed
Merge branch 'codex/sdk-version-headers' into sdk-candidate-ci
# Conflicts: # src/vapi/core/client_wrapper.py
2 parents b7bb227 + 9635519 commit 79d9f2c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎src/vapi/core/client_wrapper.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import typing
44

55
import httpx
6+
from ..version import __version__
67
from .http_client import AsyncHttpClient, HttpClient
78
from .logging import LogConfig, Logger
89

@@ -27,12 +28,12 @@ def get_headers(self) -> typing.Dict[str, str]:
2728
import platform
2829

2930
headers: typing.Dict[str, str] = {
30-
"User-Agent": "vapi_server_sdk/0.0.0-fern-placeholder",
31+
"User-Agent": f"vapi_server_sdk/{__version__}",
3132
"X-Fern-Language": "Python",
3233
"X-Fern-Runtime": f"python/{platform.python_version()}",
3334
"X-Fern-Platform": f"{platform.system().lower()}/{platform.release()}",
3435
"X-Fern-SDK-Name": "vapi_server_sdk",
35-
"X-Fern-SDK-Version": "3.0.0",
36+
"X-Fern-SDK-Version": __version__,
3637
**(self.get_custom_headers() or {}),
3738
}
3839
headers["Authorization"] = f"Bearer {self._get_token()}"

0 commit comments

Comments
 (0)