From cf9c640409ce0f6789408119163ea58c04dafb5d Mon Sep 17 00:00:00 2001 From: Bernard Gawor Date: Thu, 15 Jan 2026 16:29:36 +0100 Subject: [PATCH] sent sdk version in headers --- fishjam/_openapi_client/client.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fishjam/_openapi_client/client.py b/fishjam/_openapi_client/client.py index eeffd00..eb4e23c 100644 --- a/fishjam/_openapi_client/client.py +++ b/fishjam/_openapi_client/client.py @@ -4,6 +4,8 @@ import httpx from attrs import define, evolve, field +from fishjam.version import get_version + @define class Client: @@ -229,6 +231,7 @@ def get_httpx_client(self) -> httpx.Client: self._headers[self.auth_header_name] = ( f"{self.prefix} {self.token}" if self.prefix else self.token ) + self._headers["x-sdk_version"] = f"py-{get_version()}" self._client = httpx.Client( base_url=self._base_url, cookies=self._cookies, @@ -265,6 +268,7 @@ def get_async_httpx_client(self) -> httpx.AsyncClient: self._headers[self.auth_header_name] = ( f"{self.prefix} {self.token}" if self.prefix else self.token ) + self._headers["x-sdk_version"] = f"py-{get_version()}" self._async_client = httpx.AsyncClient( base_url=self._base_url, cookies=self._cookies,